Class DefaultSelectorListComponentModelListener
- java.lang.Object
-
- de.hybris.platform.cockpit.model.referenceeditor.impl.DefaultSelectorListComponentModelListener
-
- All Implemented Interfaces:
ListComponentModelListener
public class DefaultSelectorListComponentModelListener extends java.lang.Object implements ListComponentModelListener
-
-
Constructor Summary
Constructors Constructor Description DefaultSelectorListComponentModelListener(AbstractReferenceSelectorModel referenceSelectorModel, UIListView view)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
DefaultSelectorListComponentModelListener
public DefaultSelectorListComponentModelListener(AbstractReferenceSelectorModel referenceSelectorModel, UIListView view)
-
-
Method Detail
-
activationChanged
public void activationChanged(java.util.Collection<TypedObject> items)
Description copied from interface:ListComponentModelListenerCalled whenever the activation has changed.- Specified by:
activationChangedin interfaceListComponentModelListener- Parameters:
items- the items which were activated
-
changed
public void changed()
Description copied from interface:ListComponentModelListenerCalled 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.- Specified by:
changedin interfaceListComponentModelListener
-
itemMoved
public void itemMoved(int fromIndex, int toIndex)Description copied from interface:ListComponentModelListenerCalled whenever an item has been moved.- Specified by:
itemMovedin interfaceListComponentModelListener- Parameters:
fromIndex- the item's previous zero based position indextoIndex- the item's new zero based position index
-
itemsChanged
public void itemsChanged()
Description copied from interface:ListComponentModelListenerCalled 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).- Specified by:
itemsChangedin interfaceListComponentModelListener
-
itemsRemoved
public void itemsRemoved(java.util.Collection<? extends java.lang.Object> items)
Description copied from interface:ListComponentModelListenerCalled whenever items have been removed.- Specified by:
itemsRemovedin interfaceListComponentModelListener- Parameters:
items- the items which were removed
-
selectionChanged
public void selectionChanged(java.util.List<java.lang.Integer> indexes)
Description copied from interface:ListComponentModelListenerCalled whenever the selection has changed.- Specified by:
selectionChangedin interfaceListComponentModelListener- Parameters:
indexes- indexes of the currently selected items
-
onEvent
public void onEvent(java.lang.String eventName, java.lang.Object value)Description copied from interface:ListComponentModelListenerCalled when a generic event has been fired.- Specified by:
onEventin interfaceListComponentModelListener- Parameters:
eventName- event qualifiervalue- value attached to the event
-
-