Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.TreeModel
public class TreeModel
extends GObject
TreeView
widgets. Internally,
the TreeStore
and ListStore
objects are constructed on top of
TreeModels. If you were using the C version of gtk, you would be able to
construct other objects like those (although I find no reason for doing so).
This object provides a number of useful methods which can be used with either
the TreeStore or ListStore.
For a full overview of the tree, list and table widgets, please see the
TreeView
description.
Method Summary | |
void |
|
int |
|
int |
|
Class |
|
EventType |
|
TreeIter |
|
TreeIter |
|
TreeIter | |
Type |
|
boolean |
|
double |
|
int |
|
int |
|
long |
|
Object |
|
Pixbuf |
|
String |
|
String |
|
void |
|
public void addListener(TreeModelListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle button events.
- See Also:
TreeModelListener
public int getColumnCount()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the number of data blocks supported by the model
public int getDataBlockCount()
Deprecated. use
getColumnCount
instead.Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.Returns the number of data blocks supported by the model
public Class getEventListenerClass(String signal)
public EventType getEventType(String signal)
public TreeIter getFirstIter()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the iterator at the start of the model (the one at the path "0"), or returnsnull
if the tree is empty.
public TreeIter getIter(String pathString)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns a valid iterator pointing to the path represented bypathString
, or returnsnull
if the path is invalid.
public TreeIter getIter(TreePath path)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns a valid iterator pointing topath
, ornull
/
public Type getType(int index)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the type of the data block.
- Parameters:
index
- The index of the data block
public boolean getValue(TreeIter iter, DataColumnBoolean dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public double getValue(TreeIter iter, DataColumnDouble dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public int getValue(TreeIter iter, DataColumnIconSize dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public int getValue(TreeIter iter, DataColumnInt dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public long getValue(TreeIter iter, DataColumnLong dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns thelong
at the row specified by iter and column specified data block.
- Since:
- 2.8.5
public Object getValue(TreeIter iter, DataColumnObject dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public Pixbuf getValue(TreeIter iter, DataColumnPixbuf dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public String getValue(TreeIter iter, DataColumnStockItem dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public String getValue(TreeIter iter, DataColumnString dataBlock)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the Value at the given iter in the specified data block.
public void removeListener(TreeModelListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listener
- See Also:
addListener(TreeModelListener)