|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.gtk.DataRow
public class DataRow
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()
|
Method Summary | |
---|---|
DataRow |
add(java.lang.Object aData)
Adds a data to this row. |
java.lang.Object |
get(int aCol)
Get the data at column aCol |
java.util.List |
getAll()
Get all data in this row. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRow()
Method Detail |
---|
public java.lang.Object get(int aCol)
aCol
aCol
- the column number, starting from 0.
public java.util.List getAll()
public DataRow add(java.lang.Object aData)
aData
- a data to be added to the row
new DataRow() .add(name) .add(type) .add(icon)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |