|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.FeedbackMessages
Structure for recording FeedbackMessages; wraps a list and
acts as a IModel.
| Method Summary | |
void |
clear()
Clears any existing 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 |
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. |
boolean |
isEmpty()
Gets whether there are no messages. |
FeedbackMessage |
messageForComponent(Component component)
Looks up a message for the given component. |
java.util.List |
messages(Component component,
boolean recurse,
boolean stopAtBoundary,
int fromLevel)
Gets the list of messages relevant to a given component. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final void clear()
public final boolean isEmpty()
public final boolean hasErrorMessageFor(Component component)
component - the component to look up whether it registered a message
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 FeedbackMessage messageForComponent(Component component)
component - the component to look up the message for
public final java.util.List messages(Component component,
boolean recurse,
boolean stopAtBoundary,
int fromLevel)
component - The component to get messages forrecurse - True if children of the component should be consideredstopAtBoundary - whether to stop collecting messages when
a child component is of type IFeedbackBoundary.
Only has effect when recurse == true.fromLevel - from which level the messages are collected; DEBUG traps all,
but e.g. ERROR only traps ERROR and FATAL
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||