org.gnu.gtk
public class TreeModel extends GObject
For a full overview of the tree, list and table widgets, please see the TreeView description.
| Method Summary | |
|---|---|
| void | addListener(TreeModelListener listener)
Register an object to handle button events.
|
| int | getColumnCount()
Returns the number of data blocks supported by the model |
| int | getDataBlockCount()
Returns the number of data blocks supported by the model
|
| Class | getEventListenerClass(String signal) |
| EventType | getEventType(String signal) |
| TreeIter | getFirstIter()
Returns the iterator at the start of the model (the one at the path "0"),
or returns null if the tree is empty. |
| TreeIter | getIter(TreePath path)
Returns a valid iterator pointing to path, or
null/ |
| TreeIter | getIter(String pathString)
Returns a valid iterator pointing to the path represented by
pathString, or returns null if the path is
invalid. |
| Type | getType(int index)
Returns the type of the data block.
|
| String | getValue(TreeIter iter, DataColumnString dataBlock)
Returns the Value at the given iter in the specified data block. |
| int | getValue(TreeIter iter, DataColumnInt dataBlock)
Returns the Value at the given iter in the specified data block. |
| long | getValue(TreeIter iter, DataColumnLong dataBlock)
Returns the long at the row specified by iter and column
specified data block.
|
| boolean | getValue(TreeIter iter, DataColumnBoolean dataBlock)
Returns the Value at the given iter in the specified data block. |
| double | getValue(TreeIter iter, DataColumnDouble dataBlock)
Returns the Value at the given iter in the specified data block. |
| Object | getValue(TreeIter iter, DataColumnObject dataBlock)
Returns the Value at the given iter in the specified data block. |
| Pixbuf | getValue(TreeIter iter, DataColumnPixbuf dataBlock)
Returns the Value at the given iter in the specified data block. |
| int | getValue(TreeIter iter, DataColumnIconSize dataBlock)
Returns the Value at the given iter in the specified data block. |
| String | getValue(TreeIter iter, DataColumnStockItem dataBlock)
Returns the Value at the given iter in the specified data block. |
| void | removeListener(TreeModelListener listener)
Removes a listener
|
See Also: TreeModelListener
Deprecated: use getColumnCount instead.
null if the tree is empty.path, or
null/pathString, or returns null if the path is
invalid.Parameters: index The index of the data block
long at the row specified by iter and column
specified data block.
Since: 2.8.5
See Also: addListener