|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.feedback.FeedbackMessagesModel
public class FeedbackMessagesModel
Model for extracting feedback messages.
Constructor Summary | |
---|---|
FeedbackMessagesModel(Component component)
Constructor. |
|
FeedbackMessagesModel(Page page,
IFeedbackMessageFilter filter)
Constructor. |
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
IFeedbackMessageFilter |
getFilter()
|
List<FeedbackMessage> |
getObject()
Gets the model object. |
Comparator<FeedbackMessage> |
getSortingComparator()
|
protected List<FeedbackMessage> |
processMessages(List<FeedbackMessage> messages)
Override this method to post process to the FeedbackMessage list. |
FeedbackMessagesModel |
setFilter(IFeedbackMessageFilter filter)
|
void |
setObject(List<FeedbackMessage> object)
Sets the model object. |
FeedbackMessagesModel |
setSortingComparator(Comparator<FeedbackMessage> sortingComparator)
Sets the comparator used for sorting the messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedbackMessagesModel(Component component)
component
- The component where the page will be get from for which messages will be displayed
usually the same page as the one feedbackpanel is attached topublic FeedbackMessagesModel(Page page, IFeedbackMessageFilter filter)
filter
- The filter to applypage
- Page for which messages will be displayed - usually the same page as the one
feedbackpanel is attached toMethod Detail |
---|
public final IFeedbackMessageFilter getFilter()
public final Comparator<FeedbackMessage> getSortingComparator()
public final List<FeedbackMessage> getObject()
IModel
getObject
in interface IModel<List<FeedbackMessage>>
IModel.getObject()
public final FeedbackMessagesModel setFilter(IFeedbackMessageFilter filter)
filter
- Filter to apply to model
public final FeedbackMessagesModel setSortingComparator(Comparator<FeedbackMessage> sortingComparator)
sortingComparator
- comparator used for sorting the messages
protected List<FeedbackMessage> processMessages(List<FeedbackMessage> messages)
messages
- List of sorted and filtered FeedbackMessages for further processing
public void setObject(List<FeedbackMessage> object)
IModel
setObject
in interface IModel<List<FeedbackMessage>>
object
- The model objectIModel.setObject(java.lang.Object)
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |