Class AdvancedSearchPage.DefaultSelectorListComponentModelListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activationChanged​(java.util.Collection<TypedObject> items)
      Called whenever the activation has changed.
      void changed()
      Called whenever the list component model has been changed in a way not covered by the other ListComponentModelListener methods.
      void itemMoved​(int fromIndex, int toIndex)
      Called whenever an item has been moved.
      void itemsChanged()
      Called whenever the items held by this model have changed.
      void itemsRemoved​(java.util.Collection<? extends java.lang.Object> items)
      Called whenever items have been removed.
      void onEvent​(java.lang.String eventName, java.lang.Object value)
      Called when a generic event has been fired.
      void selectionChanged​(java.util.List<java.lang.Integer> indexes)
      Called whenever the selection has changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSelectorListComponentModelListener

        public DefaultSelectorListComponentModelListener​(UIListView view)
    • Method Detail

      • changed

        public void changed()
        Description copied from interface: ListComponentModelListener
        Called whenever the list component model has been changed in a way not covered by the other ListComponentModelListener methods.

        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:
        changed in interface ListComponentModelListener
      • itemMoved

        public void itemMoved​(int fromIndex,
                              int toIndex)
        Description copied from interface: ListComponentModelListener
        Called whenever an item has been moved.
        Specified by:
        itemMoved in interface ListComponentModelListener
        Parameters:
        fromIndex - the item's previous zero based position index
        toIndex - the item's new zero based position index
      • itemsChanged

        public void itemsChanged()
        Description copied from interface: ListComponentModelListener
        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).

        Specified by:
        itemsChanged in interface ListComponentModelListener
      • itemsRemoved

        public void itemsRemoved​(java.util.Collection<? extends java.lang.Object> items)
        Description copied from interface: ListComponentModelListener
        Called whenever items have been removed.
        Specified by:
        itemsRemoved in interface ListComponentModelListener
        Parameters:
        items - the items which were removed
      • onEvent

        public void onEvent​(java.lang.String eventName,
                            java.lang.Object value)
        Description copied from interface: ListComponentModelListener
        Called when a generic event has been fired.
        Specified by:
        onEvent in interface ListComponentModelListener
        Parameters:
        eventName - event qualifier
        value - value attached to the event