public class FeedbackCollector extends Object
Constructor and Description |
---|
FeedbackCollector()
Constructs a collector that will only collect messages from
Session . |
FeedbackCollector(Component component)
Constructs a collector that will collect messages from
Session and specified
container |
Modifier and Type | Method and Description |
---|---|
List<FeedbackMessage> |
collect()
Collects all feedback messages
|
List<FeedbackMessage> |
collect(IFeedbackMessageFilter filter)
Collects all feedback messages that match the specified
filter |
FeedbackCollector |
setIncludeSession(boolean value)
Controls whether or not feedback from the
Session will be collected
See Session.getFeedbackMessages() |
FeedbackCollector |
setRecursive(boolean value)
Controls whether or not feedback will be collected recursively from the descendants of the
specified component.
|
protected boolean |
shouldRecurseInto(Component component)
Determines whether or not recursive message collection should continue into the specified
component.
|
public FeedbackCollector()
Session
. To collect
messages from session and components use FeedbackCollector(Component)
.public final FeedbackCollector setIncludeSession(boolean value)
Session
will be collected
See Session.getFeedbackMessages()
value
- this
for chainingpublic final FeedbackCollector setRecursive(boolean value)
value
- this
for chainingpublic final List<FeedbackMessage> collect()
List
of collected messagespublic final List<FeedbackMessage> collect(IFeedbackMessageFilter filter)
filter
filter
- List
of collected messagesprotected boolean shouldRecurseInto(Component component)
false
feedback messages from the specified component nor any
of its children will be included.component
- Copyright © 2006–2019 Apache Software Foundation. All rights reserved.