org.gnu.gtk
public class TreeModel extends GObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.TreeModel
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
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
|
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
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 modelDeprecated: 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.
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.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
, or
null
/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 returns null
if the path is
invalid.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
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.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.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
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.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.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.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.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.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.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 listenerSee Also: addListener