|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<java.lang.Object> thinwire.util.ArrayGrid.Row
public static class ArrayGrid.Row
Contains an ArrayList of objects, each object associated with a different column.
AbstractList
,
Grid.Row
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ArrayGrid.Row()
Construct a Row. |
|
ArrayGrid.Row(java.util.Collection<? extends java.lang.Object> c)
Construct a Row that contains the values of the specified Collection. |
|
ArrayGrid.Row(java.lang.Object... a)
Construct a Row that contains the values of the specified Array. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object o)
|
java.lang.Object |
get(int index)
|
java.lang.Object |
get(java.lang.String columnName)
Get the field in the specified Column at this Row. |
int |
getIndex()
Gets the index for this row. |
Grid |
getParent()
Gets the grid that contains this row. |
java.lang.Object |
remove(int index)
|
java.lang.Object |
set(int index,
java.lang.Object o)
|
java.lang.Object |
set(java.lang.String columnName,
java.lang.Object o)
Set the field in the specified Column at this Row. |
int |
size()
|
Methods inherited from class java.util.AbstractList |
---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
Constructor Detail |
---|
public ArrayGrid.Row()
public ArrayGrid.Row(java.util.Collection<? extends java.lang.Object> c)
c
- the new Row's values.public ArrayGrid.Row(java.lang.Object... a)
a
- the new Row's values.Method Detail |
---|
public Grid getParent()
getParent
in interface Grid.Row
Grid.Row.getParent()
public int getIndex()
getIndex
in interface Grid.Row
Grid.Row.getIndex()
public java.lang.Object get(java.lang.String columnName)
Grid.Row
get
in interface Grid.Row
columnName
- the specified Column
Grid.Row.get(java.lang.String)
public java.lang.Object get(int index)
get
in interface java.util.List<java.lang.Object>
get
in class java.util.AbstractList<java.lang.Object>
List.get(int)
public java.lang.Object set(int index, java.lang.Object o)
set
in interface java.util.List<java.lang.Object>
set
in class java.util.AbstractList<java.lang.Object>
List.set(int, java.lang.Object)
public java.lang.Object set(java.lang.String columnName, java.lang.Object o)
Grid.Row
set
in interface Grid.Row
columnName
- the specified Columno
- the new value to set for the cell.
public void add(int index, java.lang.Object o)
add
in interface java.util.List<java.lang.Object>
add
in class java.util.AbstractList<java.lang.Object>
List.add(int, java.lang.Object)
public java.lang.Object remove(int index)
remove
in interface java.util.List<java.lang.Object>
remove
in class java.util.AbstractList<java.lang.Object>
List.remove(int)
public int size()
size
in interface java.util.Collection<java.lang.Object>
size
in interface java.util.List<java.lang.Object>
size
in class java.util.AbstractCollection<java.lang.Object>
Collection.size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |