thinwire.util
Interface Grid.Row

All Superinterfaces:
java.util.Collection<java.lang.Object>, java.lang.Iterable<java.lang.Object>, java.util.List<java.lang.Object>
All Known Implementing Classes:
ArrayGrid.Row, GridBox.Row, TableLayout.Row
Enclosing interface:
Grid<R extends Grid.Row,C extends Grid.Column>

public static interface Grid.Row
extends java.util.List<java.lang.Object>

A Row is a list of values. The 1st Row of a Grid is the list of values in the Grid's 1st Row (i.e. the Row at index 0). Element j of Row k in a Grid is element k of Column j.


Method Summary
 java.lang.Object get(java.lang.String columnName)
          Get the field in the specified Column at this Row.
 int getIndex()
          Get the index for this Row.
 Grid getParent()
          Get the Grid this Row is part of.
 java.lang.Object set(java.lang.String columnName, java.lang.Object o)
          Set the field in the specified Column at this Row.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

get

java.lang.Object get(java.lang.String columnName)
Get the field in the specified Column at this Row.

Parameters:
columnName - the specified Column
Returns:
the field specified by the current row and the column name passed.

set

java.lang.Object set(java.lang.String columnName,
                     java.lang.Object o)
Set the field in the specified Column at this Row.

Parameters:
columnName - the specified Column
o - the new value to set for the cell.
Returns:
the field specified by the current row and the column name passed.

getParent

Grid getParent()
Get the Grid this Row is part of.

Returns:
the Grid this Row is part of

getIndex

int getIndex()
Get the index for this Row.

Returns:
the index for this Row


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story