|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.model.AbstractDetachableModel
wicket.FeedbackMessagesModel
Model for extracting feedback messages.
| Constructor Summary | |
FeedbackMessagesModel(boolean includeNestedComponents)
Construct. |
|
FeedbackMessagesModel(boolean includeNestedComponents,
Component collectingComponent)
Construct. |
|
FeedbackMessagesModel(boolean includeNestedComponents,
Component collectingComponent,
java.util.Comparator sortingComparator)
Construct. |
|
| Method Summary | |
IModel |
getNestedModel()
Gets the nested model. |
protected void |
onAttach()
Attaches to the current request. |
protected void |
onDetach()
Detaches from the current request. |
java.lang.Object |
onGetObject(Component component)
Called when getObject is called in order to retrieve the detachable object. |
protected void |
onSetObject(Component component,
java.lang.Object object)
Called when setObject is called in order to change the detachable object. |
void |
setCollectingComponent(Component collectingComponent)
Sets the optional collecting component. |
void |
setSortingComparator(java.util.Comparator sortingComparator)
Sets the comparator used for sorting the messages. |
protected void |
sort(java.util.List list)
Sorts the list if property sortingComparator was set, otherwise it doesn't do any sorting. |
| Methods inherited from class wicket.model.AbstractDetachableModel |
attach, detach, getObject, isAttached, setObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FeedbackMessagesModel(boolean includeNestedComponents)
IFeedbackBoundary
will be searched for higher up in the run-time hierarchy for collecting messages
includeNestedComponents - Whether to include the messages of any nested component
public FeedbackMessagesModel(boolean includeNestedComponents,
Component collectingComponent)
includeNestedComponents - Whether to include the messages of any nested componentcollectingComponent - Optional collecting component.
When this is not set explicitly, the first occurence of IFeedbackBoundary
will be searched for higher up in the run-time hierarchy.
public FeedbackMessagesModel(boolean includeNestedComponents,
Component collectingComponent,
java.util.Comparator sortingComparator)
includeNestedComponents - Whether to include the messages of any nested componentcollectingComponent - Optional collecting component.
When this is not set explicitly, the first occurence of IFeedbackBoundary
will be searched for higher up in the run-time hierarchy.sortingComparator - | Method Detail |
public java.lang.Object onGetObject(Component component)
AbstractDetachableModel
onGetObject in class AbstractDetachableModelcomponent - The component asking for the object
AbstractDetachableModel.onGetObject(wicket.Component)protected void sort(java.util.List list)
list - list to sort; contains elements of FeedbackMessage.protected void onDetach()
AbstractDetachableModel
onDetach in class AbstractDetachableModelAbstractDetachableModel.onDetach()protected void onAttach()
AbstractDetachableModel
onAttach in class AbstractDetachableModelAbstractDetachableModel.onAttach()
protected void onSetObject(Component component,
java.lang.Object object)
AbstractDetachableModel
onSetObject in class AbstractDetachableModelcomponent - The component asking for replacement of the model objectobject - The new model objectAbstractDetachableModel.onSetObject(wicket.Component, java.lang.Object)public IModel getNestedModel()
IModel
getNestedModel in interface IModelgetNestedModel in class AbstractDetachableModelIModel.getNestedModel()public void setCollectingComponent(Component collectingComponent)
IFeedbackBoundary will be searched for higher up in the run-time
hierarchy.
collectingComponent - the collecting componentpublic void setSortingComparator(java.util.Comparator sortingComparator)
sortingComparator - comparator used for sorting the messages
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||