|
|||||||||
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.gnu.gtk.TreeStore
org.gnome.gtk.TreeStore
.
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 TreeStore
The TreeStore is a Model used for storing data which will be displayed in any
number of TreeView
widgets. For an overview of how the tree and list
objects fit together, see the TreeView
description.
Data is stored within this object in DataColumn
s. This data is
displayed in the widgets via CellRenderer
's; the mapping between
this data and the cell renderers of each treeview column is done in the
TreeViewColumn
class.
Constructor Summary | |
---|---|
TreeStore(DataColumn[] dataColumns)
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. |
Method Summary | |
---|---|
void |
addRow(DataRow aRow)
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 |
addRow(DataRow aRow,
TreeIter aParent)
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 |
addRowAt(DataRow aRow,
int aPosition)
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 |
addRowAt(DataRow aRow,
TreeIter aParent,
int aPosition)
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 |
appendRow(TreeIter parent)
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 |
clear()
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.util.List |
getAllDataColumns()
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. |
DataColumn |
getDataColumn(int aCol)
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 |
getIteratorDepth(TreeIter iter)
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. |
DataRow |
getRowAt(TreeIter aIter)
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. |
DataColumn |
getSortColumn()
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. |
SortType |
getSortOrder()
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. |
static org.gnu.glib.Type |
getType()
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 |
handleCompareFunc(org.gnu.glib.Handle model,
org.gnu.glib.Handle aIter,
org.gnu.glib.Handle bIter,
int col)
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 |
insertRow(TreeIter parent,
int position)
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 |
insertRowAfter(TreeIter sibling,
TreeIter parent)
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 |
insertRowBefore(TreeIter sibling,
TreeIter parent)
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 |
isAncestor(TreeIter iter,
TreeIter descendant)
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 |
isIterValid(TreeIter iter)
Deprecated. |
void |
moveRowAfter(TreeIter iter,
TreeIter position)
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 |
moveRowBefore(TreeIter iter,
TreeIter position)
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 |
moveRowToEnd(TreeIter iter)
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 |
moveRowToStart(TreeIter iter)
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 |
prependRow(TreeIter parent)
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 |
removeRow(TreeIter iter)
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 |
reorder(TreeIter iter,
int[] newOrder)
Deprecated. |
void |
setColumnTypes(DataColumn[] dataColumns)
Deprecated. |
void |
setDragDestListener(TreeDragDestListener 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. |
void |
setDragSourceListener(TreeDragSourceListener 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. |
void |
setRowAt(DataRow aRow,
TreeIter aIter)
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 |
setSortColumn(DataColumn column,
SortType order)
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 |
setSortMethod(TreeIterComparison method,
DataColumn column)
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 |
setValue(TreeIter iter,
DataColumnBoolean dataBlock,
boolean value)
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 |
setValue(TreeIter iter,
DataColumnDouble dataBlock,
double value)
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 |
setValue(TreeIter iter,
DataColumnIconSize dataBlock,
IconSize value)
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 |
setValue(TreeIter iter,
DataColumnInt dataBlock,
int value)
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 |
setValue(TreeIter iter,
DataColumnLong dataBlock,
long value)
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 |
setValue(TreeIter iter,
DataColumnObject dataBlock,
java.lang.Object value)
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 |
setValue(TreeIter iter,
DataColumnPixbuf dataBlock,
Pixbuf value)
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 |
setValue(TreeIter iter,
DataColumnStockItem dataBlock,
GtkStockItem value)
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 |
setValue(TreeIter iter,
DataColumnString dataBlock,
java.lang.String value)
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 |
swapRows(TreeIter a,
TreeIter b)
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.gtk.TreeModel |
---|
addListener, getColumnCount, getDataBlockCount, getEventListenerClass, getEventType, getFirstIter, getIter, getIter, getType, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, removeListener |
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 |
Methods inherited from interface org.gnu.gtk.TreeSortable |
---|
getHandle |
Constructor Detail |
---|
public TreeStore(DataColumn[] dataColumns)
dataColumns
- Types for the data to be stored in the TreeStore.Method Detail |
---|
public void setColumnTypes(DataColumn[] dataColumns)
public DataColumn getDataColumn(int aCol)
aCol
as a
DataColumn
. This is similar to calling
getType(int)
; the difference is that this method returns
the type as a DataColumn, which is a more high-level structure.
aCol
- the column index
public java.util.List getAllDataColumns()
List
with the types for every column as a
DataColumn
object.
DataColumn
'spublic void setValue(TreeIter iter, DataColumnString dataBlock, java.lang.String value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnStockItem dataBlock, GtkStockItem value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnIconSize dataBlock, IconSize value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnInt dataBlock, int value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnLong dataBlock, long value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The long
value to set into this row.public void setValue(TreeIter iter, DataColumnBoolean dataBlock, boolean value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnDouble dataBlock, double value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The datablock in which the data should be stored.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void setValue(TreeIter iter, DataColumnObject dataBlock, java.lang.Object value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The data block in which to store the data, starting at 0.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set. This must match the type for
that dataBlock, as set in the constructor.public void setValue(TreeIter iter, DataColumnPixbuf dataBlock, Pixbuf value)
This does not make the data visible in any of the widgets which use the
class - to do that, you have to construct a TreeViewColumn
and
add it to the TreeView
; construct and add a CellRenderer
to that; and finally associate the properties of the CellRenderer with
the dataBlocks, using the
TreeViewColumn.addAttributeMapping(CellRenderer, CellRendererAttribute,
DataColumn)
method.
dataBlock
- The data block in which to store the data, starting at 0.iter
- Valid iterator for the data row in which the value is to be
set. These can be gotten using methods such as
appendRow(TreeIter)
.value
- The value to be set.public void addRow(DataRow aRow)
DataColumn
type
specified in the constructor of TreeStore. For example, if it was passed
{new DataColumnBoolean(), new DataColumnString()}
to the
constructor, then the DataRow must contain a Boolean and a String object,
respectively.
aRow
- a row to be added to the listpublic void addRowAt(DataRow aRow, int aPosition)
DataColumn
type specified in the constructor of TreeStore.
For example, if it was passed
{new DataColumnBoolean(), new DataColumnString()}
to the
constructor, then the DataRow must contain a Boolean and a String object,
respectively.
aRow
- a row to be added to the listpublic void addRow(DataRow aRow, TreeIter aParent)
DataColumn
type
specified in the constructor of TreeStore. For example, if it was passed
{new DataColumnBoolean(), new DataColumnString()}
to the
constructor, then the DataRow must contain a Boolean and a String object,
respectively.
aRow
- a row to be added to the listaParent
- a TreeIter
pointing to a parent row.public void addRowAt(DataRow aRow, TreeIter aParent, int aPosition)
DataColumn
type specified in the constructor of TreeStore.
For example, if it was passed
{new DataColumnBoolean(), new DataColumnString()}
to the
constructor, then the DataRow must contain a Boolean and a String object,
respectively.
aRow
- a row to be added to the listaParent
- a TreeIter
pointing to a parent row.public DataRow getRowAt(TreeIter aIter)
aIter
. There
are several ways you can get a TreeIter
to pass; for
example: using methods like getIter
and
getFirstIter()
, or from a TreeSelection
.
aIter
- the iter pointing to the row
DataRow
filled with the values of the row.TreeModel.getIter(String)
,
TreeModel.getIter(TreePath)
,
TreeModel.getFirstIter()
,
TreeSelection
public void setRowAt(DataRow aRow, TreeIter aIter)
aIter
to the values stored in
aRow
.
aRow
- a row with itemsaIter
- a TreeIter
pointing to a row in the tree.getRowAt(TreeIter)
public void removeRow(TreeIter iter)
iter
- TreeIter representing the row.public TreeIter insertRow(TreeIter parent, int position)
parent
- A valid TreeIter, or NULLposition
- Position to insert the new row
public TreeIter insertRowBefore(TreeIter sibling, TreeIter parent)
parent
- A valid TreeIter, or NULLsibling
- A valid TreeIter, or NULL
public TreeIter insertRowAfter(TreeIter sibling, TreeIter parent)
parent
- A valid TreeIter, or NULLsibling
- A valid GtkTreeIter, or NULL
public TreeIter prependRow(TreeIter parent)
parent
- A valid TreeIter, or NULL
public TreeIter appendRow(TreeIter parent)
parent
- A valid TreeIter, or NULL
public boolean isAncestor(TreeIter iter, TreeIter descendant)
iter
- Row to be tested.descendant
- Descendant row for testing
public int getIteratorDepth(TreeIter iter)
iter
- The iterator to test the depth of
public void clear()
public static org.gnu.glib.Type getType()
public void setSortColumn(DataColumn column, SortType order)
setSortColumn
in interface TreeSortable
public DataColumn getSortColumn()
DataColumn.equals(org.gnu.gtk.DataColumn)
method.
getSortColumn
in interface TreeSortable
public SortType getSortOrder()
getSortOrder
in interface TreeSortable
public void setSortMethod(TreeIterComparison method, DataColumn column)
setSortMethod
in interface TreeSortable
public int handleCompareFunc(org.gnu.glib.Handle model, org.gnu.glib.Handle aIter, org.gnu.glib.Handle bIter, int col)
handleCompareFunc
in interface TreeSortable
public void setDragDestListener(TreeDragDestListener listener)
setDragDestListener
in interface TreeDragDest
public void setDragSourceListener(TreeDragSourceListener listener)
setDragSourceListener
in interface TreeDragSource
public void swapRows(TreeIter a, TreeIter b)
public void moveRowToEnd(TreeIter iter)
public void moveRowAfter(TreeIter iter, TreeIter position)
public void moveRowToStart(TreeIter iter)
public void moveRowBefore(TreeIter iter, TreeIter position)
public boolean isIterValid(TreeIter iter)
public void reorder(TreeIter iter, int[] newOrder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |