qx.ui.tree
Class Tree<T>

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.core.Parent
                  extended by qx.ui.layout.BoxLayout
                      extended by qx.ui.tree.AbstractTreeElement<T>
                          extended by qx.ui.tree.TreeFolder<T>
                              extended by qx.ui.tree.Tree<T>

public class Tree<T>
extends TreeFolder<T>

The Tree class implements a tree widget, with collapsable and expandable container nodes and terminal leaf nodes. You instantiate a Tree object as the root of the tree, then add TreeFolder (node) and TreeFile (leaf) objects as needed, using the (inherited) add() method.

Beware though that the tree structure you are building is internally augmented with other widgets to achieve the desired look and feel. So if you later try to navigate the tree e.g. by using the getChildren() method, you get more (and type-wise different) children than you initially added. If this is inconvenient you may want to maintain a tree model alongside the tree widget in your application.

The handling of selections within a tree is somewhat distributed between the root Tree object and the attached TreeSelectionManager. To get the currently selected element of a tree use the TreegetSelectedElement method and TreesetSelectedElement to set it. The TreeSelectionManager handles more coars-grained issues like providing selectAll()/deselectAll() methods.


Field Summary
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
Tree()
          The tree constructor understands two signatures.
Tree(java.lang.Object labelOrTreeRowStructure)
          The tree constructor understands two signatures.
Tree(java.lang.Object labelOrTreeRowStructure, java.lang.String icon)
          The tree constructor understands two signatures.
Tree(java.lang.Object labelOrTreeRowStructure, java.lang.String icon, java.lang.String iconSelected)
          The tree constructor understands two signatures.
 
Method Summary
 void _applyExcludeSpecificTreeLines(java.lang.Object value, java.lang.Object old)
           
 void _applyHideNode(java.lang.Object value, java.lang.Object old)
           
 void _applyRootOpenClose(java.lang.Object value, java.lang.Object old)
           
 void _applyUseTreeLines(java.lang.Object value, java.lang.Object old)
           
 java.lang.Object _onkeydown(Event e)
           
 java.lang.Object _onkeypress(Event e)
           
 void _onkeyup(Event e)
           
 void addChildToTreeQueue(AbstractTreeElement vChild)
          Adds vChild to the tree queue.
static
<T> Tree<T>
create(T root)
           
 void flushTreeQueue()
          Flushes the tree queue.
 void flushWidgetQueue()
          Flushes the tree queue.
 java.lang.Object getExcludeSpecificTreeLines()
          Returns the (computed) value of the property excludeSpecificTreeLines.
 AbstractTreeElement getFirstTreeChild()
          Returns itself.
 boolean getHideNode()
          Returns the (computed) value of the property hideNode.
 java.lang.Object getHierarchy(java.lang.Object vArr)
          Obtain the entire hierarchy of labels from the root down to the current node.
 java.lang.Object getIndentSymbol(java.lang.Object vUseTreeLines, java.lang.Object vColumn, java.lang.Object vLastColumn)
           
 AbstractTreeElement getItems(boolean recursive, boolean invisible)
          Returns all children of the folder.
 java.lang.Object getLastTreeChild()
           
 java.lang.Integer getLevel()
          Always returns 0 since a Tree instance is always the root of a tree, and therefore is on level 0.
 SelectionManager getManager()
          Returns the selection manager for this tree.
 TreeFolder getParentFolder()
          Always returns null since a Tree instance is always the root of a tree, and therefore has no parent.
 boolean getRootOpenClose()
          Returns the (computed) value of the property rootOpenClose.
 AbstractTreeElement getSelectedElement()
          Returns the currently selected element within the tree.
 Tree getTree()
          Returns the current tree instance, i.e.
 boolean getUseDoubleClick()
          Returns the (computed) value of the property useDoubleClick.
 boolean getUseTreeLines()
          Returns the (computed) value of the property useTreeLines.
 void hideNode()
           
 void initExcludeSpecificTreeLines(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property excludeSpecificTreeLines with the default value defined by the class developer.
 void initHideNode(boolean arg)
          Calls the apply method and dispatches the change event of the property hideNode with the default value defined by the class developer.
 void initRootOpenClose(boolean arg)
          Calls the apply method and dispatches the change event of the property rootOpenClose with the default value defined by the class developer.
 void initUseDoubleClick(boolean arg)
          Calls the apply method and dispatches the change event of the property useDoubleClick with the default value defined by the class developer.
 void initUseTreeLines(boolean arg)
          Calls the apply method and dispatches the change event of the property useTreeLines with the default value defined by the class developer.
 boolean isHideNode()
          Check whether the (computed) value of the boolean property hideNode equals true.
 boolean isRootOpenClose()
          Check whether the (computed) value of the boolean property rootOpenClose equals true.
 boolean isUseDoubleClick()
          Check whether the (computed) value of the boolean property useDoubleClick equals true.
 boolean isUseTreeLines()
          Check whether the (computed) value of the boolean property useTreeLines equals true.
 void removeChildFromTreeQueue(AbstractTreeElement vChild)
          Removes vChild from the tree queue.
 void resetExcludeSpecificTreeLines()
          Resets the user value of the property excludeSpecificTreeLines.
 void resetHideNode()
          Resets the user value of the property hideNode.
 void resetRootOpenClose()
          Resets the user value of the property rootOpenClose.
 void resetUseDoubleClick()
          Resets the user value of the property useDoubleClick.
 void resetUseTreeLines()
          Resets the user value of the property useTreeLines.
 void setExcludeSpecificTreeLines(java.lang.Object arg)
          Sets the user value of the property excludeSpecificTreeLines.
 void setHideNode(boolean arg)
          Sets the user value of the property hideNode.
 void setRootOpenClose(boolean arg)
          Sets the user value of the property rootOpenClose.
 void setSelectedElement(AbstractTreeElement vElement)
          Sets the selected element in the tree to vElement.
 void setUseDoubleClick(boolean arg)
          Sets the user value of the property useDoubleClick.
 void setUseTreeLines(boolean arg)
          Sets the user value of the property useTreeLines.
 boolean toggleHideNode()
          Toggles the (computed) value of the boolean property hideNode.
 boolean toggleRootOpenClose()
          Toggles the (computed) value of the boolean property rootOpenClose.
 boolean toggleUseDoubleClick()
          Toggles the (computed) value of the boolean property useDoubleClick.
 boolean toggleUseTreeLines()
          Toggles the (computed) value of the boolean property useTreeLines.
 void useDoubleClick()
           
 void useTreeLines()
           
 
Methods inherited from class qx.ui.tree.TreeFolder
_applyAlwaysShowPlusMinusSymbol, _applyOpen, _createChildrenStructure, _handleChildMove, _ondblclick, _onmousedown, _onmouseup, _openCallback, _updateIndent, _updateLastColumn, addAfterToFolder, addAtBeginToFolder, addAtEndToFolder, addAtToFolder, addBeforeToFolder, addFile, addFolder, addToFolder, close, destroyContent, getAlwaysShowPlusMinusSymbol, getContainerObject, getFirstVisibleChildOfFolder, getHorizontalLayout, getIndentSymbol, getLastVisibleChildOfFolder, getOpen, hasContent, initAlwaysShowPlusMinusSymbol, initOpen, isAlwaysShowPlusMinusSymbol, isOpen, open, remove, removeAll, removeAt, resetAlwaysShowPlusMinusSymbol, resetOpen, setAlwaysShowPlusMinusSymbol, setOpen, toggle, toggleAlwaysShowPlusMinusSymbol, toggleOpen
 
Methods inherited from class qx.ui.tree.AbstractTreeElement
_applyIcon, _applyLabel, _applyParent, _applySelected, _evalCurrentIcon, _getRowStructure, _handleDisplayableCustom, _onmouseup, addToCustomQueues, addToTreeQueue, destroy, flushTree, getIcon, getIconObject, getIconSelected, getIndentObject, getLabel, getLabelObject, getNode, getSelected, initIcon, initIconSelected, initLabel, initSelected, isSelected, removeFromCustomQueues, removeFromTreeQueue, resetIcon, resetIconSelected, resetLabel, resetSelected, setIcon, setIconSelected, setLabel, setNode, setSelected, toggleSelected
 
Methods inherited from class qx.ui.layout.BoxLayout
_applyHorizontalChildrenAlign, _applyOrientation, _applyReverseChildrenOrder, _applySpacing, _applyStretchChildrenOrthogonalAxis, _applyUseAdvancedFlexAllocation, _applyVerticalChildrenAlign, _computeAccumulatedChildrenOuterHeight, _computeAccumulatedChildrenOuterWidth, _createLayoutImpl, _doLayout, _doLayoutOrder, _invalidateLayoutMode, _recomputeChildrenStretchingX, _recomputeChildrenStretchingY, _updateLayoutMode, getHorizontalChildrenAlign, getLayoutMode, getOrientation, getReverseChildrenOrder, getSpacing, getStretchChildrenOrthogonalAxis, getUseAdvancedFlexAllocation, getVerticalChildrenAlign, initHorizontalChildrenAlign, initOrientation, initReverseChildrenOrder, initSpacing, initStretchChildrenOrthogonalAxis, initUseAdvancedFlexAllocation, initVerticalChildrenAlign, isHorizontal, isReverseChildrenOrder, isStretchChildrenOrthogonalAxis, isUseAdvancedFlexAllocation, isVertical, resetHorizontalChildrenAlign, resetOrientation, resetReverseChildrenOrder, resetSpacing, resetStretchChildrenOrthogonalAxis, resetUseAdvancedFlexAllocation, resetVerticalChildrenAlign, setHorizontalChildrenAlign, setOrientation, setReverseChildrenOrder, setSpacing, setStretchChildrenOrthogonalAxis, setUseAdvancedFlexAllocation, setVerticalChildrenAlign, toggleReverseChildrenOrder, toggleStretchChildrenOrthogonalAxis, toggleUseAdvancedFlexAllocation
 
Methods inherited from class qx.ui.core.Parent
_addChildrenToLayoutQueue, _addChildrenToStateQueue, _addChildToChildrenQueue, _afterAppear, _afterDisappear, _afterInsertDom, _afterRemoveDom, _applyActiveChild, _applyFocusedChild, _applyFocusHandler, _beforeAppear, _beforeDisappear, _beforeInsertDom, _beforeRemoveDom, _changeInnerHeight, _changeInnerWidth, _computePreferredInnerHeight, _computePreferredInnerWidth, _computeVisibleChildren, _flushChildrenQueue, _layoutChild, _layoutPost, _onfocuskeyevent, _recursiveAppearanceThemeUpdate, _removeChildFromChildrenQueue, activateFocusRoot, add, addAfter, addAt, addAtBegin, addAtEnd, addBefore, contains, forEachChild, forEachVisibleChild, getActiveChild, getChildren, getChildrenLength, getFirstActiveChild, getFirstChild, getFirstVisibleChild, getFocusedChild, getFocusHandler, getFocusRoot, getInnerHeightForChild, getInnerWidthForChild, getLastActiveChild, getLastChild, getLastVisibleChild, getLayoutImpl, getVisibleChildrenLength, hasChildren, hasVisibleChildren, indexOf, initActiveChild, initFocusedChild, initFocusHandler, isEmpty, isFocusRoot, isVisibleEmpty, recursiveAddToStateQueue, remapChildrenHandlingTo, resetActiveChild, resetFocusedChild, resetFocusHandler, setActiveChild, setFocusedChild, setFocusHandler
 
Methods inherited from class qx.ui.core.Widget
_applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxHeightFallback, _computeBoxWidth, _computeBoxWidthFallback, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getWidth, getWidthValue, getZIndex, hasState, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, renderPadding, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree

public Tree()

The tree constructor understands two signatures. One compatible with the original qooxdoo tree and one compatible with the treefullcontrol widget. If the first parameter if of type TreeRowStructure the tree element is rendered using this structure. Otherwhise the all three arguments are evaluated.


Tree

public Tree(java.lang.Object labelOrTreeRowStructure)

The tree constructor understands two signatures. One compatible with the original qooxdoo tree and one compatible with the treefullcontrol widget. If the first parameter if of type TreeRowStructure the tree element is rendered using this structure. Otherwhise the all three arguments are evaluated.


Tree

public Tree(java.lang.Object labelOrTreeRowStructure,
            java.lang.String icon)

The tree constructor understands two signatures. One compatible with the original qooxdoo tree and one compatible with the treefullcontrol widget. If the first parameter if of type TreeRowStructure the tree element is rendered using this structure. Otherwhise the all three arguments are evaluated.


Tree

public Tree(java.lang.Object labelOrTreeRowStructure,
            java.lang.String icon,
            java.lang.String iconSelected)

The tree constructor understands two signatures. One compatible with the original qooxdoo tree and one compatible with the treefullcontrol widget. If the first parameter if of type TreeRowStructure the tree element is rendered using this structure. Otherwhise the all three arguments are evaluated.

Method Detail

_applyExcludeSpecificTreeLines

public void _applyExcludeSpecificTreeLines(java.lang.Object value,
                                           java.lang.Object old)

_applyHideNode

public void _applyHideNode(java.lang.Object value,
                           java.lang.Object old)

_applyRootOpenClose

public void _applyRootOpenClose(java.lang.Object value,
                                java.lang.Object old)

_applyUseTreeLines

public void _applyUseTreeLines(java.lang.Object value,
                               java.lang.Object old)

_onkeydown

public java.lang.Object _onkeydown(Event e)

_onkeypress

public java.lang.Object _onkeypress(Event e)

_onkeyup

public void _onkeyup(Event e)

addChildToTreeQueue

public void addChildToTreeQueue(AbstractTreeElement vChild)

Adds vChild to the tree queue.


flushTreeQueue

public void flushTreeQueue()

Flushes the tree queue.


flushWidgetQueue

public void flushWidgetQueue()

Flushes the tree queue.


getExcludeSpecificTreeLines

public java.lang.Object getExcludeSpecificTreeLines()

Returns the (computed) value of the property excludeSpecificTreeLines.

For further details take a look at the property definition: excludeSpecificTreeLines.


getFirstTreeChild

public AbstractTreeElement getFirstTreeChild()

Returns itself.


getHideNode

public boolean getHideNode()

Returns the (computed) value of the property hideNode.

For further details take a look at the property definition: hideNode.


getHierarchy

public java.lang.Object getHierarchy(java.lang.Object vArr)
Description copied from class: AbstractTreeElement

Obtain the entire hierarchy of labels from the root down to the current node.

Overrides:
getHierarchy in class AbstractTreeElement<T>

getIndentSymbol

public java.lang.Object getIndentSymbol(java.lang.Object vUseTreeLines,
                                        java.lang.Object vColumn,
                                        java.lang.Object vLastColumn)

getItems

public AbstractTreeElement getItems(boolean recursive,
                                    boolean invisible)

Returns all children of the folder.

Overrides:
getItems in class TreeFolder<T>

getLastTreeChild

public java.lang.Object getLastTreeChild()

getLevel

public java.lang.Integer getLevel()

Always returns 0 since a Tree instance is always the root of a tree, and therefore is on level 0.

Overrides:
getLevel in class AbstractTreeElement<T>

getManager

public SelectionManager getManager()

Returns the selection manager for this tree. The selection manager is managing the whole tree, not just the root Tree element or some part of it.


getParentFolder

public TreeFolder getParentFolder()

Always returns null since a Tree instance is always the root of a tree, and therefore has no parent.

Overrides:
getParentFolder in class AbstractTreeElement<T>

getRootOpenClose

public boolean getRootOpenClose()

Returns the (computed) value of the property rootOpenClose.

For further details take a look at the property definition: rootOpenClose.


getSelectedElement

public AbstractTreeElement getSelectedElement()

Returns the currently selected element within the tree. This is a descendant of the root tree element.


getTree

public Tree getTree()

Returns the current tree instance, i.e. itself.

Overrides:
getTree in class AbstractTreeElement<T>

getUseDoubleClick

public boolean getUseDoubleClick()

Returns the (computed) value of the property useDoubleClick.

For further details take a look at the property definition: useDoubleClick.


getUseTreeLines

public boolean getUseTreeLines()

Returns the (computed) value of the property useTreeLines.

For further details take a look at the property definition: useTreeLines.


hideNode

public void hideNode()

initExcludeSpecificTreeLines

public void initExcludeSpecificTreeLines(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property excludeSpecificTreeLines with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: excludeSpecificTreeLines.


initHideNode

public void initHideNode(boolean arg)

Calls the apply method and dispatches the change event of the property hideNode with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: hideNode.


initRootOpenClose

public void initRootOpenClose(boolean arg)

Calls the apply method and dispatches the change event of the property rootOpenClose with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: rootOpenClose.


initUseDoubleClick

public void initUseDoubleClick(boolean arg)

Calls the apply method and dispatches the change event of the property useDoubleClick with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: useDoubleClick.


initUseTreeLines

public void initUseTreeLines(boolean arg)

Calls the apply method and dispatches the change event of the property useTreeLines with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: useTreeLines.


isHideNode

public boolean isHideNode()

Check whether the (computed) value of the boolean property hideNode equals true.

For further details take a look at the property definition: hideNode.


isRootOpenClose

public boolean isRootOpenClose()

Check whether the (computed) value of the boolean property rootOpenClose equals true.

For further details take a look at the property definition: rootOpenClose.


isUseDoubleClick

public boolean isUseDoubleClick()

Check whether the (computed) value of the boolean property useDoubleClick equals true.

For further details take a look at the property definition: useDoubleClick.


isUseTreeLines

public boolean isUseTreeLines()

Check whether the (computed) value of the boolean property useTreeLines equals true.

For further details take a look at the property definition: useTreeLines.


removeChildFromTreeQueue

public void removeChildFromTreeQueue(AbstractTreeElement vChild)

Removes vChild from the tree queue.


resetExcludeSpecificTreeLines

public void resetExcludeSpecificTreeLines()

Resets the user value of the property excludeSpecificTreeLines.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: excludeSpecificTreeLines.


resetHideNode

public void resetHideNode()

Resets the user value of the property hideNode.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: hideNode.


resetRootOpenClose

public void resetRootOpenClose()

Resets the user value of the property rootOpenClose.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: rootOpenClose.


resetUseDoubleClick

public void resetUseDoubleClick()

Resets the user value of the property useDoubleClick.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: useDoubleClick.


resetUseTreeLines

public void resetUseTreeLines()

Resets the user value of the property useTreeLines.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: useTreeLines.


setExcludeSpecificTreeLines

public void setExcludeSpecificTreeLines(java.lang.Object arg)

Sets the user value of the property excludeSpecificTreeLines.

For further details take a look at the property definition: excludeSpecificTreeLines.


setHideNode

public void setHideNode(boolean arg)

Sets the user value of the property hideNode.

For further details take a look at the property definition: hideNode.


setRootOpenClose

public void setRootOpenClose(boolean arg)

Sets the user value of the property rootOpenClose.

For further details take a look at the property definition: rootOpenClose.


setSelectedElement

public void setSelectedElement(AbstractTreeElement vElement)

Sets the selected element in the tree to vElement.


setUseDoubleClick

public void setUseDoubleClick(boolean arg)

Sets the user value of the property useDoubleClick.

For further details take a look at the property definition: useDoubleClick.


setUseTreeLines

public void setUseTreeLines(boolean arg)

Sets the user value of the property useTreeLines.

For further details take a look at the property definition: useTreeLines.


toggleHideNode

public boolean toggleHideNode()

Toggles the (computed) value of the boolean property hideNode.

For further details take a look at the property definition: hideNode.


toggleRootOpenClose

public boolean toggleRootOpenClose()

Toggles the (computed) value of the boolean property rootOpenClose.

For further details take a look at the property definition: rootOpenClose.


toggleUseDoubleClick

public boolean toggleUseDoubleClick()

Toggles the (computed) value of the boolean property useDoubleClick.

For further details take a look at the property definition: useDoubleClick.


toggleUseTreeLines

public boolean toggleUseTreeLines()

Toggles the (computed) value of the boolean property useTreeLines.

For further details take a look at the property definition: useTreeLines.


useDoubleClick

public void useDoubleClick()

useTreeLines

public void useTreeLines()

create

public static <T> Tree<T> create(T root)


Copyright © 2008 1&1. All Rights Reserved.