Interface ItemsChangeListener


  • public interface ItemsChangeListener
    This is a listener interface which should be implemented where ever item providers or the item registry are used in order to be notified of any dynamic changes in the provided items.
    Author:
    Kai Kreuzer - Initial contribution
    • Method Detail

      • allItemsChanged

        void allItemsChanged​(ItemProvider provider,
                             Collection<String> oldItemNames)
        Notifies the listener that all items of a provider have changed and thus should be reloaded.
        Parameters:
        provider - the concerned item provider
        oldItemNames - a collection of all previous item names, so that references can be removed
      • itemAdded

        void itemAdded​(ItemProvider provider,
                       Item item)
        Notifies the listener that a single item has been added
        Parameters:
        provider - the concerned item provider
        item - the item that has been added
      • itemRemoved

        void itemRemoved​(ItemProvider provider,
                         Item item)
        Notifies the listener that a single item has been removed
        Parameters:
        provider - the concerned item provider
        item - the item that has been removed