org.gnu.gtk
Class DataRow

java.lang.Object
  extended by org.gnu.gtk.DataRow

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.DataRow. 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 DataRow
extends java.lang.Object

A DataRow is simply a list of data, which represent a row that can be added to store components, such as ListStore and TreeStore.

To create a DataRow and add it to a store is pretty straight forward:

store.addRow(new DataRow() .add(name) .add(type) .add(icon));


Constructor Summary
DataRow()
          Deprecated.  
 
Method Summary
 DataRow add(java.lang.Object aData)
          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 get(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.
 java.util.List getAll()
          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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRow

public DataRow()
Deprecated. 
Method Detail

get

public java.lang.Object get(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.

Get the data at column aCol

Parameters:
aCol - the column number, starting from 0.
Returns:
the data at that column

getAll

public java.util.List getAll()
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.

Get all data in this row.

Returns:
a List, with the data of each row.

add

public DataRow add(java.lang.Object aData)
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.

Adds a data to this row. This will fill the columns of the row sequentially: the first call is the first column, and so it goes.

Parameters:
aData - a data to be added to the row
Returns:
this DataRow. The reason why it returns this object is so you can make useful constructions, such as: new DataRow() .add(name) .add(type) .add(icon)