|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.feedback.FeedbackCollector
public class FeedbackCollector
Collects feedback messages from all the places where they can be stored.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedbackCollector()
Session
. To collect
messages from session and components use FeedbackCollector(Component)
.
public FeedbackCollector(Component component)
Session
and specified
container
component
- root component from which feedback will be collectedMethod Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |