org.gnu.gtk

Class DataColumn

Known Direct Subclasses:
DataColumnBoolean, DataColumnDouble, DataColumnIconSize, DataColumnInt, DataColumnObject, DataColumnPixbuf, DataColumnStockItem, DataColumnString

public abstract class DataColumn
extends java.lang.Object

Represents a block in which data can be stored in a TreeModel (such as ListStore or TreeStore). In Gtk, these are called columns and are referenced by integers. We have renamed them to DataBlocks to avoid confusion with TreeViewColumns and created these objects to use rather than integers. This allows type checking and should make programs more maintainable. This is an abstract class - there is an implementation of it for each type of data accepted by the two tree models.

See Also:
ListStore, TreeStore

Field Summary

protected int
column
protected Type
type

Method Summary

boolean
equals(DataColumn col)
Determine if the given DataColumn represents the same column in the store as the current object.
int
getColumn()
Returns the column number of this dataBlock used internally by Gtk.
Type
getType()
Returns the glib Type of data contained in this column.

Field Details

column

protected int column


type

protected Type type

Method Details

equals

public boolean equals(DataColumn col)
Determine if the given DataColumn represents the same column in the store as the current object. This compares the column ids using the getColumn() method.


getColumn

public int getColumn()
Returns the column number of this dataBlock used internally by Gtk.


getType

public Type getType()
Returns the glib Type of data contained in this column. This can only be called once. (it is only needed once - in the constructor of the listStore/TreeStore)