Module org.apache.wicket.core
Package org.apache.wicket.feedback
Class ErrorLevelFeedbackMessageFilter
java.lang.Object
org.apache.wicket.feedback.ErrorLevelFeedbackMessageFilter
- All Implemented Interfaces:
Serializable
,Predicate<FeedbackMessage>
,IFeedbackMessageFilter
,IClusterable
Filter for accepting feedback messages with minimum level.
- Author:
- Jonathan Locke
- See Also:
-
Field Summary
Fields inherited from interface org.apache.wicket.feedback.IFeedbackMessageFilter
ALL, NONE
-
Constructor Summary
ConstructorsConstructorDescriptionErrorLevelFeedbackMessageFilter
(int minimumErrorLevel) Filters messages with an greater or equals level than minimumErrorLevel. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.feedback.IFeedbackMessageFilter
test
-
Constructor Details
-
ErrorLevelFeedbackMessageFilter
Filters messages with an greater or equals level than minimumErrorLevel.- Parameters:
minimumErrorLevel
- The component to filter on, the constraints can be:
FeedbackMessage.SUCCESS
FeedbackMessage.UNDEFINED
FeedbackMessage.DEBUG
FeedbackMessage.INFO
FeedbackMessage.WARNING
FeedbackMessage.ERROR
FeedbackMessage.FATAL
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceIFeedbackMessageFilter
- Parameters:
message
- The message to test for inclusion- Returns:
- True if the message should be included, false to exclude it
-