Class CmsTree<I extends CmsTreeItem>

  • Type Parameters:
    I - the specific tree item implementation
    All Implemented Interfaces:,<I>,<I>,,,,,,,,,, java.lang.Iterable<>, I_CmsDropTarget, I_CmsTruncable
    Direct Known Subclasses:

    public class CmsTree<I extends CmsTreeItem>
    extends CmsList<I>
    A tree of list items.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class,
      • Nested classes/interfaces inherited from interface
      • Nested classes/interfaces inherited from interface
    • Field Summary

      Modifier and Type Field Description
      protected m_eventBus
      The event bus for the tree.
      • Fields inherited from class

    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description addCloseHandler​(<I> handler) addOpenHandler​(<I> handler)  
      void cancelOpenTimer()
      Cancels the open timer if present.
      void closeAllEmpty()
      Closes all empty entries.
      void fireClose​(I item)
      Fires the close event for an item.
      void fireEvent​(<?> event)  
      void fireOpen​(I item)
      Fires an open event for a tree item.
      java.lang.String getPlaceholderPath()
      Returns the placeholder path.
      boolean isAnimationEnabled()  
      boolean isRootDropEnabled()
      Returns if dropping on root level is enabled or not.
      protected void registerItem​(I item)
      Registers the given item on this list.
      protected void removeOpenTimer()
      Sets the timer reference to null.
      void removePlaceholder()
      Removes the placeholder.
      void repositionPlaceholder​(int x, int y, CmsDNDHandler.Orientation orientation)
      Repositions the placeholder.
      void setAnimationEnabled​(boolean enable)  
      void setDropEnabled​(boolean enabled)
      Here the meaning is enabling dropping on the root level.
      void setOpenTimer​(CmsTreeItem item)
      Sets a timer to set a tree item open.
      protected void setPlaceholder​( placeholder)
      Sets the current drag'n drop place holder.
      protected void setPlaceholderPath​(java.lang.String path)
      Sets the placeholder path.
      void setRootDropEnabled​(boolean rootDropEnabled)
      Sets the drop on root enabled.
      • Methods inherited from class

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
      • Methods inherited from class

        add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator