|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.feedback.FeedbackMessages
public final class FeedbackMessages
Holds list of feedback messages. The list can be added to, cleared, queried and filtered.
WARNING: This class should typically NOT be used directly.
| Constructor Summary | |
|---|---|
FeedbackMessages()
Construct. |
|
| Method Summary | |
|---|---|
void |
add(Component reporter,
Serializable message,
int level)
Adds a message |
void |
add(FeedbackMessage message)
Adds a message. |
int |
clear()
Clears any existing messages. |
int |
clear(IFeedbackMessageFilter filter)
Clears all messages that are accepted by the filter. |
void |
debug(Component reporter,
Serializable message)
Adds a new ui message with level DEBUG to the current messages. |
void |
error(Component reporter,
Serializable message)
Adds a new ui message with level ERROR to the current messages. |
void |
fatal(Component reporter,
Serializable message)
Adds a new ui message with level FATAL to the current messages. |
boolean |
hasErrorMessageFor(Component component)
Convenience method that looks up whether the given component registered a message with this list with the level ERROR. |
boolean |
hasMessage(IFeedbackMessageFilter filter)
|
boolean |
hasMessageFor(Component component)
Looks up whether the given component registered a message with this list. |
boolean |
hasMessageFor(Component component,
int level)
Looks up whether the given component registered a message with this list with the given level. |
void |
info(Component reporter,
Serializable message)
Adds a new ui message with level INFO to the current messages. |
boolean |
isEmpty()
Gets whether there are no messages. |
Iterator<FeedbackMessage> |
iterator()
Gets an iterator over stored messages |
FeedbackMessage |
messageForComponent(Component component)
Deprecated. use messagesForComponent(org.apache.wicket.Component) instead |
List<FeedbackMessage> |
messages(IFeedbackMessageFilter filter)
Gets a list of messages from the page using a filter. |
List<FeedbackMessage> |
messagesForComponent(Component component)
Looks up the messages for the given component. |
int |
size()
Gets the number of messages |
int |
size(IFeedbackMessageFilter filter)
Gets the number of messages. |
void |
success(Component reporter,
Serializable message)
Adds a new ui message with level SUCCESS to the current messages. |
String |
toString()
|
void |
warn(Component reporter,
Serializable message)
Adds a new ui message with level WARNING to the current messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FeedbackMessages()
| Method Detail |
|---|
public final void add(FeedbackMessage message)
message - the message
public final void add(Component reporter,
Serializable message,
int level)
reporter - message - level -
public final void debug(Component reporter,
Serializable message)
reporter - the reporting componentmessage - the actual message
public final void info(Component reporter,
Serializable message)
reporter - The reporting componentmessage - The actual message
public final void success(Component reporter,
Serializable message)
reporter - The reporting componentmessage - The actual message
public final void warn(Component reporter,
Serializable message)
reporter - the reporting componentmessage - the actual message
public final void error(Component reporter,
Serializable message)
reporter - the reporting componentmessage - the actual message
public final void fatal(Component reporter,
Serializable message)
reporter - the reporting componentmessage - the actual messagepublic final int clear()
public final int clear(IFeedbackMessageFilter filter)
filter - Filter for selecting messages. If null, all messages will be returned
public final boolean hasMessage(IFeedbackMessageFilter filter)
filter - Filter for selecting messages
public final boolean hasMessageFor(Component component)
component - the component to look up whether it registered a message
public final boolean hasMessageFor(Component component,
int level)
component - The component to look up whether it registered a messagelevel - The level of the message
public final boolean hasErrorMessageFor(Component component)
component - the component to look up whether it registered a message
public final Iterator<FeedbackMessage> iterator()
iterator in interface Iterable<FeedbackMessage>public final List<FeedbackMessage> messages(IFeedbackMessageFilter filter)
filter - Filter for selecting messages. If null, all messages will be returned
public final FeedbackMessage messageForComponent(Component component)
messagesForComponent(org.apache.wicket.Component) instead
component - the component to look up the message for
public final List<FeedbackMessage> messagesForComponent(Component component)
component - the component to look up the message for
public final boolean isEmpty()
public final int size()
public final int size(IFeedbackMessageFilter filter)
filter - Filter for counting messages. If null, the count of all messages will be returned
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||