Interface ITreeItemWithIDFactory<KEYTYPE,​DATATYPE,​ITEMTYPE extends ITreeItemWithID<KEYTYPE,​DATATYPE,​ITEMTYPE>>

    • Method Detail

      • createRoot

        @Nonnull
        ITEMTYPE createRoot()
        Create a root entry.
        Returns:
        New root entry. May not be null.
      • create

        ITEMTYPE create​(@Nonnull
                        ITEMTYPE aParent,
                        @Nonnull
                        KEYTYPE aDataID)
        Create a child entry.
        Parameters:
        aParent - The parent entry to use. May not be null.
        aDataID - The data ID of the new element
        Returns:
        The created non-root entry. May not be null.
      • onRemoveItem

        void onRemoveItem​(@Nonnull
                          ITEMTYPE aItem)
        To be called once a tree item is removed from the owning tree. This method is mainly important for the tree with globally unique IDs.
        Parameters:
        aItem - The item that was removed.
      • onAddItem

        void onAddItem​(@Nonnull
                       ITEMTYPE aItem)
        To be called once a tree item is added to the owning tree. This method is mainly important for the tree with globally unique IDs.
        Parameters:
        aItem - The item that was added.