|
||||||||||
| 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.WebMarkupContainerWithAssociatedMarkup
wicket.markup.html.panel.Panel
wicket.markup.html.panel.FeedbackPanel
public class 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/interfaces inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
|---|
WebMarkupContainerWithAssociatedMarkup.HeaderPartContainer |
| Nested classes/interfaces inherited from class wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
|---|
| Fields inherited from class wicket.Component |
|---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
FeedbackPanel(java.lang.String id)
|
|
FeedbackPanel(java.lang.String id,
IFeedbackMessageFilter filter)
|
|
| Method Summary | |
|---|---|
boolean |
anyErrorMessage()
Search messages that this panel will render, and see if there is any message of level ERROR or up. |
boolean |
anyMessage()
Search messages that this panel will render, and see if there is any message. |
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 |
getEscapeMessages()
Gets whether model messages should be HTML escaped. |
FeedbackMessagesModel |
getFeedbackMessagesModel()
|
IFeedbackMessageFilter |
getFilter()
|
java.util.Comparator |
getSortingComparator()
|
boolean |
isVersioned()
|
protected FeedbackMessagesModel |
newFeedbackMessagesModel()
Gets a new instance of FeedbackMessagesModel to use. |
void |
setEscapeMessages(boolean escapeMessages)
Sets whether model messages should be HTML escaped. |
void |
setFilter(IFeedbackMessageFilter filter)
Sets a filter to use on the feedback messages model |
void |
setMaxMessages(int maxMessages)
|
void |
setSortingComparator(java.util.Comparator sortingComparator)
Sets the comparator used for sorting the messages. |
void |
updateFeedback()
This method is called on any component implementing IFeedback when it is time for the component to update its feedback display |
| Methods inherited from class wicket.markup.html.panel.Panel |
|---|
onComponentTag, onComponentTagBody, renderHead |
| Methods inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
|---|
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
|---|
getMarkupType, getWebPage |
| Methods inherited from class wicket.MarkupContainer |
|---|
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, 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)
public FeedbackPanel(java.lang.String id,
IFeedbackMessageFilter filter)
Component.Component(String)| Method Detail |
|---|
public final boolean getEscapeMessages()
public final FeedbackMessagesModel getFeedbackMessagesModel()
public final IFeedbackMessageFilter getFilter()
public final java.util.Comparator getSortingComparator()
public boolean isVersioned()
isVersioned in class ComponentComponent.isVersioned()public final void setEscapeMessages(boolean escapeMessages)
escapeMessages - whether model messages should be HTML escapedpublic final void setFilter(IFeedbackMessageFilter filter)
filter - The message filter to install on the feedback messages modelpublic final void setMaxMessages(int maxMessages)
maxMessages - The maximum number of feedback messages that this feedback
panel should show at one timepublic final void setSortingComparator(java.util.Comparator sortingComparator)
sortingComparator - comparator used for sorting the messages.public void updateFeedback()
IFeedback
updateFeedback in interface IFeedbackIFeedback.updateFeedback()public final boolean anyErrorMessage()
public final boolean anyMessage()
public final boolean anyMessage(int level)
level - the level, see FeedbackMessage
protected java.lang.String getCSSClass(FeedbackMessage message)
message - the message
protected final java.util.List getCurrentMessages()
protected FeedbackMessagesModel newFeedbackMessagesModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||