Class WTreeTableNode
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WWidget
-
- eu.webtoolkit.jwt.WCompositeWidget
-
- eu.webtoolkit.jwt.WTreeNode
-
- eu.webtoolkit.jwt.WTreeTableNode
-
public class WTreeTableNode extends WTreeNode
A specialized tree node which allows additional data to be associated with each node.Additional data for each column can be set using
setColumnWidget().- See Also:
WTreeNode,WTreeTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Field Summary
-
Fields inherited from class eu.webtoolkit.jwt.WWidget
WT_GETEXTRAMS_JS
-
-
Constructor Summary
Constructors Constructor Description WTreeTableNode(java.lang.CharSequence labelText)Creates a new tree table node.WTreeTableNode(java.lang.CharSequence labelText, WIconPair labelIcon)Creates a new tree table node.WTreeTableNode(java.lang.CharSequence labelText, WIconPair labelIcon, WTreeTableNode parentNode)Creates a new tree table node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WWidgetgetColumnWidget(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, undoDoExpand
-
Methods 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, setVerticalAlignment
-
Methods 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, tr
-
Methods inherited from class eu.webtoolkit.jwt.WObject
setFormData
-
-
-
-
Constructor Detail
-
WTreeTableNode
public WTreeTableNode(java.lang.CharSequence labelText, WIconPair labelIcon, WTreeTableNode parentNode)Creates a new tree table node.- See Also:
WTreeNode(WTreeNode parentNode)
-
WTreeTableNode
public WTreeTableNode(java.lang.CharSequence labelText)
Creates a new tree table node.
-
WTreeTableNode
public WTreeTableNode(java.lang.CharSequence labelText, WIconPair labelIcon)Creates a new tree table node.
-
-
Method Detail
-
setColumnWidget
public void setColumnWidget(int column, WWidget widget)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
public WWidget getColumnWidget(int column)
Returns the widget set for a column.Returns the widget set previously using
setColumnWidget(), ornullif no widget was previously set.
-
insertChildNode
public void insertChildNode(int index, WTreeNode node)Description copied from class:WTreeNodeInserts a child node.Inserts the node
nodeat indexindex.- Overrides:
insertChildNodein classWTreeNode
-
setTable
protected void setTable(WTreeTable table)
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()
-
-