thinwire.util
Class ArrayGrid.Column

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<java.lang.Object>
          extended by thinwire.util.ArrayGrid.Column
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, Grid.Column
Direct Known Subclasses:
GridBox.Column, TableLayout.Column
Enclosing class:
ArrayGrid<R extends ArrayGrid.Row,C extends ArrayGrid.Column>

public static class ArrayGrid.Column
extends java.util.AbstractList<java.lang.Object>
implements Grid.Column

Contains an ArrayList of objects, each object associated with a different row.

See Also:
AbstractList, Grid.Column

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArrayGrid.Column()
          Construct a Column.
ArrayGrid.Column(java.util.Collection<? extends java.lang.Object> c)
          Construct a Column, specifying a Collection whose values will serve as the Column's values.
ArrayGrid.Column(java.lang.Object... a)
          Construct a Column that contains the values of the specified Array.
 
Method Summary
 void add(int index, java.lang.Object o)
           
 java.lang.Object get(int index)
           
 int getIndex()
          Get the index of this Column.
 java.lang.String getName()
          Get the name of this Column
 Grid getParent()
          Gets the grid that contains this column.
 java.lang.Object remove(int index)
           
 java.lang.Object set(int index, java.lang.Object o)
           
 void setName(java.lang.String name)
          Sets the name of this Column.
 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

ArrayGrid.Column

public ArrayGrid.Column()
Construct a Column.


ArrayGrid.Column

public ArrayGrid.Column(java.util.Collection<? extends java.lang.Object> c)
Construct a Column, specifying a Collection whose values will serve as the Column's values.

Parameters:
c - the new Column's values

ArrayGrid.Column

public ArrayGrid.Column(java.lang.Object... a)
Construct a Column that contains the values of the specified Array.

Parameters:
a - the new Column's values
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Grid.Column
Get the name of this Column

Specified by:
getName in interface Grid.Column
Returns:
the name of this Column
See Also:
Grid.Column.getName()

setName

public void setName(java.lang.String name)
Description copied from interface: Grid.Column
Sets the name of this Column.

Specified by:
setName in interface Grid.Column
Parameters:
name - the name of this Column
See Also:
Grid.Column.setName(java.lang.String)

getParent

public Grid getParent()
Gets the grid that contains this column.

Specified by:
getParent in interface Grid.Column
Returns:
the Grid that this column is part of.
See Also:
Grid.Column.getParent()

getIndex

public int getIndex()
Description copied from interface: Grid.Column
Get the index of this Column.

Specified by:
getIndex in interface Grid.Column
Returns:
the index for this Column
See Also:
Grid.Column.getIndex()

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List<java.lang.Object>
Specified by:
get in class java.util.AbstractList<java.lang.Object>
See Also:
List.get(int)

set

public java.lang.Object set(int index,
                            java.lang.Object o)
Specified by:
set in interface java.util.List<java.lang.Object>
Overrides:
set in class java.util.AbstractList<java.lang.Object>
See Also:
List.set(int, java.lang.Object)

add

public void add(int index,
                java.lang.Object o)
Specified by:
add in interface java.util.List<java.lang.Object>
Overrides:
add in class java.util.AbstractList<java.lang.Object>
See Also:
List.add(int, java.lang.Object)

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List<java.lang.Object>
Overrides:
remove in class java.util.AbstractList<java.lang.Object>
See Also:
List.remove(int)

size

public int size()
Specified by:
size in interface java.util.Collection<java.lang.Object>
Specified by:
size in interface java.util.List<java.lang.Object>
Specified by:
size in class java.util.AbstractCollection<java.lang.Object>
See Also:
Collection.size()


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