|
Groovy JDK |
Method Summary | |
---|---|
Iterator
|
iterator()
Returns an Iterator which traverses the DefaultTableModel one item at a time. |
DefaultTableModel
|
leftShift(Object row)
Overloads the left shift operator to provide an easy way to add rows to a DefaultTableModel. |
void
|
putAt(int index, Object row)
Allow DefaultTableModel to work with subscript operators. |
Method Detail |
---|
public Iterator iterator()
public DefaultTableModel leftShift(Object row)
if row.size < model.size -> row will be padded with nulls
row
- a row to be added to the model..public void putAt(int index, Object row)
WARNING: this operation does not replace the item at the specified index, rather it inserts the item at that index, thus increasing the size of the model by 1.
if row.size < model.size -> row will be padded with nulls
index
- an index.row
- the row to insert at the given index.
|
Groovy JDK |