Wt::WTreeTableNode Class Reference

WTreeTableNode is a specialization of WTreeNode which allows additional data to be associated with each node. More...

#include <WTreeTableNode>

Inherits Wt::WTreeNode.

Inheritance diagram for Wt::WTreeTableNode:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WTreeTableNode (const WString &labelText, WIconPair *labelIcon=0, WTreeTableNode *parentNode=0)
 Create a new WTreeTableNode.
void setColumnWidget (int column, WWidget *item)
 Set a widget to be displayed in the given column for this node.
WWidgetcolumnWidget (int column)
 Get the widget to be displayed in the given column.

Protected Member Functions

virtual void addChildNode (WTreeNode *node)
 Add a child node.
virtual void setTable (WTreeTable *table)
 Sets the table for this node.

Detailed Description

WTreeTableNode is a specialization of WTreeNode which allows additional data to be associated with each node.

The additional data is displayed inside columns, in conjunction with a WTreeTable.

See also:
WTreeNode, WTreeTable


Constructor & Destructor Documentation

Wt::WTreeTableNode::WTreeTableNode ( const WString labelText,
WIconPair labelIcon = 0,
WTreeTableNode parentNode = 0 
)

Create a new WTreeTableNode.

See also:
WTreeNode::WTreeNode()


Member Function Documentation

WWidget * Wt::WTreeTableNode::columnWidget ( int  column  ) 

Get the widget to be displayed in the given column.

Returns the widget set previously using setColumnWidget, or 0 if no widget was previously set.

void Wt::WTreeTableNode::setColumnWidget ( int  column,
WWidget item 
)

Set 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.

void Wt::WTreeTableNode::setTable ( WTreeTable table  )  [protected, virtual]

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.


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7