Class WTreeTableNode
Additional data for each column can be set using setColumnWidget().
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
ConstructorsConstructorDescriptionWTreeTableNode(CharSequence labelText) Creates a new tree table node.WTreeTableNode(CharSequence labelText, WIconPair labelIcon) Creates a new tree table node.WTreeTableNode(CharSequence labelText, WIconPair labelIcon, WTreeTableNode parentNode) Creates a new tree table node. -
Method Summary
Modifier and TypeMethodDescriptiongetColumnWidget(int column) Returns the widget set for a column.voidinsertChildNode(int index, WTreeNode node) Inserts a child node.voidsetColumnWidget(int column, WWidget widget) Sets a widget to be displayed in the given column for this node.protected voidsetTable(WTreeTable table) Sets the table for this node.Methods inherited from class eu.webtoolkit.jwt.WTreeNode
addChildNode, collapse, collapsed, descendantAdded, descendantRemoved, doCollapse, doExpand, expand, expanded, getChildCountPolicy, getChildNodes, getDisplayedChildCount, getExpandIcon, getImpl, getLabel, getLabelArea, getLabelIcon, getParentNode, getTree, isExpandable, isExpanded, isPopulated, isSelectable, populate, remove, removeChildNode, renderSelected, selected, setChildCountPolicy, setChildrenDecorated, setInteractive, setLabelIcon, setLoadPolicy, setNodeVisible, setSelectable, undoDoCollapse, undoDoExpandMethods inherited from class eu.webtoolkit.jwt.WCompositeWidget
addStyleClass, boxBorder, boxPadding, callJavaScriptMember, doJavaScript, enableAjax, find, findById, getAttributeValue, getBaseZIndex, getChildren, getClearSides, getDecorationStyle, getFloatSide, getHeight, getId, getImplementation, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getObjectName, getOffset, getPositionScheme, getScrollVisibilityMargin, getStyleClass, getTabIndex, getTakeImplementation, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasFocus, hasStyleClass, isCanReceiveFocus, isDisabled, isEnabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isScrollVisibilityEnabled, isScrollVisible, isSetFirstFocus, isThemeStyleEnabled, isVisible, load, propagateSetEnabled, propagateSetVisible, refresh, removeStyleClass, removeWidget, render, resize, scrollVisibilityChanged, setAttributeValue, setCanReceiveFocus, setClearSides, setDecorationStyle, setDeferredToolTip, setDisabled, setFloatSide, setFocus, setHidden, setHiddenKeepsGeometry, setId, setImplementation, setInline, setJavaScriptMember, setLineHeight, setMargin, setMaximumSize, setMinimumSize, setObjectName, setOffsets, setParentWidget, setPopup, setPositionScheme, setScrollVisibilityEnabled, setScrollVisibilityMargin, setStyleClass, setTabIndex, setThemeStyleEnabled, setToolTip, setVerticalAlignmentMethods inherited from class eu.webtoolkit.jwt.WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addJSignal, addStyleClass, animateHide, animateShow, applyThemeStyles, createJavaScript, disable, dropEvent, enable, getDropTouch, getJsRef, getParent, hide, htmlText, isExposed, isGlobalWidget, isLayoutSizeAware, isRendered, layoutSizeChanged, needsRerender, positionAt, positionAt, positionAt, positionAt, removeFromParent, removeStyleClass, render, resize, scheduleRender, scheduleRender, scheduleRender, scheduleThemeStyleApply, setClearSides, setDeferredToolTip, setFocus, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, trMethods inherited from class eu.webtoolkit.jwt.WObject
setFormData
-
Constructor Details
-
WTreeTableNode
Creates a new tree table node.- See Also:
-
WTreeTableNode
Creates a new tree table node. -
WTreeTableNode
Creates a new tree table node.
-
-
Method Details
-
setColumnWidget
Sets a widget to be displayed in the given column for this node.Columns are counted starting from 0 for the tree list itself, and 1 for the first additional column.
The node label (in column 0) is not considered a column widget. To set a custom widget in column 0, you can add a widget to the
WTreeNode.getLabelArea(). -
getColumnWidget
Returns the widget set for a column.Returns the widget set previously using
setColumnWidget(), ornullif no widget was previously set. -
insertChildNode
Description copied from class:WTreeNodeInserts a child node.Inserts the node
nodeat indexindex.- Overrides:
insertChildNodein classWTreeNode
-
setTable
Sets the table for this node.This method is called when the node is inserted, directly, or indirectly into a table.
You may want to reimplement this method if you wish to customize the behaviour of the node depending on table properties. For example to only associate data with the node when the tree list is actually used inside a table.
- See Also:
-
getTable()
-