Interface ListComponentModelListener
-
- All Known Implementing Classes:
AdvancedSearchPage.DefaultSelectorListComponentModelListener,DefaultBrowserListModelListener,DefaultBrowserSectionListModelListener,DefaultListComponentModelListener,DefaultListModelListener,DefaultSelectorListComponentModelListener,DefaultSimpleSelectorListComponentModelListener
public interface ListComponentModelListenerAListComponentModelListeneris notified whenever theListComponentModelwith which it is registered has changed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivationChanged(java.util.Collection<TypedObject> items)Called whenever the activation has changed.voidchanged()Called whenever the list component model has been changed in a way not covered by the otherListComponentModelListenermethods.voiditemMoved(int fromIndex, int toIndex)Called whenever an item has been moved.voiditemsChanged()Called whenever the items held by this model have changed.voiditemsRemoved(java.util.Collection<? extends java.lang.Object> items)Called whenever items have been removed.voidonEvent(java.lang.String eventName, java.lang.Object value)Called when a generic event has been fired.voidselectionChanged(java.util.List<java.lang.Integer> indexes)Called whenever the selection has changed.
-
-
-
Method Detail
-
activationChanged
void activationChanged(java.util.Collection<TypedObject> items)
Called whenever the activation has changed.- Parameters:
items- the items which were activated
-
selectionChanged
void selectionChanged(java.util.List<java.lang.Integer> indexes)
Called whenever the selection has changed.- Parameters:
indexes- indexes of the currently selected items
-
itemMoved
void itemMoved(int fromIndex, int toIndex)Called whenever an item has been moved.- Parameters:
fromIndex- the item's previous zero based position indextoIndex- the item's new zero based position index
-
itemsRemoved
void itemsRemoved(java.util.Collection<? extends java.lang.Object> items)
Called whenever items have been removed.- Parameters:
items- the items which were removed
-
itemsChanged
void itemsChanged()
Called whenever the items held by this model have changed. Note: When this method is called it typically means that major changes have been made, which means that the associated view components probably need to re-render all its items (rows in the case of a table presentation).
-
changed
void changed()
Called whenever the list component model has been changed in a way not covered by the otherListComponentModelListenermethods. Note: When this method is called it typically means that major changes have been made to the whole model, which means that the associated view component probably need to re-render itself completely in order to visually represent the new state.
-
onEvent
void onEvent(java.lang.String eventName, java.lang.Object value)Called when a generic event has been fired.- Parameters:
eventName- event qualifiervalue- value attached to the event
-
-