|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
wicket.markup.html.panel.Panel
wicket.markup.html.panel.FeedbackPanel
A panel that displays FeedbackMessages in a list view.
The maximum number of messages to show can be set with setMaxMessages().
FeedbackMessage,
FeedbackMessages,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class wicket.Component |
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
| Fields inherited from class wicket.Component |
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4 |
| Constructor Summary | |
FeedbackPanel(java.lang.String id)
|
|
| Method Summary | |
protected boolean |
anyErrorMessage()
Search messages that this panel will render, and see if there is any message of level ERROR or up. |
protected boolean |
anyMessage()
Search messages that this panel will render, and see if there is any message. |
protected boolean |
anyMessage(int level)
Search messages that this panel will render, and see if there is any message of the given level. |
protected java.lang.String |
getCSSClass(FeedbackMessage message)
Gets the css class for the given message. |
protected java.util.List |
getCurrentMessages()
Gets the currently collected messages for this panel. |
boolean |
isVersioned()
|
protected FeedbackMessagesModel |
newFeedbackMessagesModel()
Gets a new instance of FeedbackMessagesModel to use. |
protected void |
onBeginRequest()
Called when a request begins. |
void |
setCollectingComponent(Component collectingComponent)
Sets the optional collecting component. |
void |
setMaxMessages(int maxMessages)
|
void |
setSortingComparator(java.util.Comparator sortingComparator)
Sets the comparator used for sorting the messages. |
| Methods inherited from class wicket.markup.html.panel.Panel |
onRender |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
getMarkupType |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FeedbackPanel(java.lang.String id)
Component.Component(String)| Method Detail |
public final void setMaxMessages(int maxMessages)
maxMessages - The maximum number of feedback messages that this feedback
panel should show at one timepublic final void setCollectingComponent(Component collectingComponent)
IFeedbackBoundary will be searched for higher up in the run-time
hierarchy.
setCollectingComponent in interface IFeedbackcollectingComponent - the collecting componentpublic final void setSortingComparator(java.util.Comparator sortingComparator)
sortingComparator - comparator used for sorting the messages.public boolean isVersioned()
isVersioned in class ComponentComponent.isVersioned()protected final void onBeginRequest()
Component
onBeginRequest in class ComponentComponent.onBeginRequest()protected java.lang.String getCSSClass(FeedbackMessage message)
message - the message
protected FeedbackMessagesModel newFeedbackMessagesModel()
protected final java.util.List getCurrentMessages()
protected final boolean anyErrorMessage()
protected final boolean anyMessage()
protected final boolean anyMessage(int level)
level - the level, see FeedbackMessage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||