|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.TreeModel
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.
public class TreeModel
A generic tree interface for use with 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 |
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. |
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. |
int |
getDataBlockCount()
Deprecated. use getColumnCount instead. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
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. |
TreeIter |
getIter(java.lang.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. |
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. |
org.gnu.glib.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. |
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. |
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. |
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. |
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. |
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. |
java.lang.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. |
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. |
java.lang.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. |
java.lang.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. |
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. |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getDataBlockCount()
getColumnCount
instead.
public int getColumnCount()
public org.gnu.glib.Type getType(int index)
index
- The index of the data blockpublic TreeIter getIter(TreePath path)
path
, or
null
/
public TreeIter getIter(java.lang.String pathString)
pathString
, or returns null
if the path is
invalid.
public TreeIter getFirstIter()
null
if the tree is empty.
public java.lang.String getValue(TreeIter iter, DataColumnString dataBlock)
public int getValue(TreeIter iter, DataColumnInt dataBlock)
public long getValue(TreeIter iter, DataColumnLong dataBlock)
long
at the row specified by iter and column
specified data block.
public boolean getValue(TreeIter iter, DataColumnBoolean dataBlock)
public double getValue(TreeIter iter, DataColumnDouble dataBlock)
public java.lang.Object getValue(TreeIter iter, DataColumnObject dataBlock)
public Pixbuf getValue(TreeIter iter, DataColumnPixbuf dataBlock)
public int getValue(TreeIter iter, DataColumnIconSize dataBlock)
public java.lang.String getValue(TreeIter iter, DataColumnStockItem dataBlock)
public void addListener(TreeModelListener listener)
TreeModelListener
public void removeListener(TreeModelListener listener)
addListener(TreeModelListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class org.gnu.glib.GObject
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class org.gnu.glib.GObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |