|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WWidget
eu.webtoolkit.jwt.WCompositeWidget
eu.webtoolkit.jwt.WTreeNode
eu.webtoolkit.jwt.WTreeTableNode
public class WTreeTableNode
A specialized tree node which allows additional data to be associated with each node.
Additional data for each column can be set using
setColumnWidget().
This widget is styled by the current CSS theme. See WTreeNode for
details.
WTreeNode,
WTreeTable| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WTreeNode |
|---|
WTreeNode.ChildCountPolicy, WTreeNode.LoadPolicy |
| Constructor Summary | |
|---|---|
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 | |
|---|---|
WWidget |
getColumnWidget(int column)
Returns the widget set for a column. |
void |
insertChildNode(int index,
WTreeNode node)
Inserts a child node. |
void |
setColumnWidget(int column,
WWidget widget)
Sets a widget to be displayed in the given column for this node. |
protected void |
setTable(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, getImagePack, getLabel, getLabelArea, getLabelIcon, getParentNode, getTree, isExpandable, isExpanded, isPopulated, isSelectable, populate, remove, removeChildNode, renderSelected, selected, setChildCountPolicy, setChildrenDecorated, setImagePack, setInteractive, setLabelIcon, setLoadPolicy, setNodeVisible, setSelectable, undoDoCollapse, undoDoExpand |
| Methods inherited from class eu.webtoolkit.jwt.WWidget |
|---|
acceptDrops, acceptDrops, addCssRule, addCssRule, addStyleClass, animateHide, animateShow, containsExposed, disable, dropEvent, enable, getDrop, getJsRef, getParent, hide, htmlText, isLayoutSizeAware, isRendered, layoutSizeChanged, positionAt, positionAt, removeStyleClass, resize, setClearSides, 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 |
|---|
getObjectName, setObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WTreeTableNode(java.lang.CharSequence labelText,
WIconPair labelIcon,
WTreeTableNode parentNode)
WTreeNode.WTreeNode(CharSequence labelText, WIconPair labelIcon,
WTreeNode parent)public WTreeTableNode(java.lang.CharSequence labelText)
Calls
this(labelText, (WIconPair)null, (WTreeTableNode)null)
public WTreeTableNode(java.lang.CharSequence labelText,
WIconPair labelIcon)
Calls
this(labelText, labelIcon, (WTreeTableNode)null)
| Method Detail |
|---|
public void setColumnWidget(int column,
WWidget widget)
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().
public WWidget getColumnWidget(int column)
Returns the widget set previously using
setColumnWidget(), or null if no widget was previously set.
public void insertChildNode(int index,
WTreeNode node)
WTreeNode
Inserts the node node at index index.
insertChildNode in class WTreeNodeprotected void setTable(WTreeTable table)
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.
getTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||