org.sakaiproject.profile2.tool.components
Class ErrorLevelsFeedbackMessageFilter

java.lang.Object
  extended by org.sakaiproject.profile2.tool.components.ErrorLevelsFeedbackMessageFilter
All Implemented Interfaces:
Serializable, org.apache.wicket.feedback.IFeedbackMessageFilter, org.apache.wicket.IClusterable

public class ErrorLevelsFeedbackMessageFilter
extends Object
implements org.apache.wicket.feedback.IFeedbackMessageFilter

Filter for accepting only feedback messages with this error level. You can use this code under Apache 2.0 license, as long as you retain the copyright messages. Tested with Wicket 1.3.4

Author:
Daan, StuQ.nl
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.wicket.feedback.IFeedbackMessageFilter
ALL
 
Constructor Summary
ErrorLevelsFeedbackMessageFilter(int[] filteredErrorLevels)
          Constructor
 
Method Summary
 boolean accept(org.apache.wicket.feedback.FeedbackMessage message)
          Method accept, only accept FeedbackMessages that are not in the list of error levels to filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorLevelsFeedbackMessageFilter

public ErrorLevelsFeedbackMessageFilter(int[] filteredErrorLevels)
Constructor

Parameters:
filteredErrorLevels - The FeedbackMessages that have thes error levels will not be shown.
Method Detail

accept

public boolean accept(org.apache.wicket.feedback.FeedbackMessage message)
Method accept, only accept FeedbackMessages that are not in the list of error levels to filter.

Specified by:
accept in interface org.apache.wicket.feedback.IFeedbackMessageFilter
Parameters:
message - of type FeedbackMessage
Returns:
boolean


Copyright © 2008-2012 The Sakai Foundation. All Rights Reserved.