com.glaivestone.mv.swing
Class TableRow

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.glaivestone.mv.swing.TableRow
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class TableRow
extends java.util.Vector

A table row holds a value which is represented as a set of fields in a tabular presentation.

Author:
Deb Lewis
See Also:
Serialized Form

Constructor Summary
TableRow()
          Construct a new table row.
TableRow(java.lang.Object aValue)
          Construct a new table row which holds the given value.
TableRow(java.lang.Object aValue, int nColumns)
          Construct a new table row which holds the given value and uses the specified number of columns in the presentation.
 
Method Summary
static java.util.Vector asVector(java.lang.Object[] values)
           
 java.lang.Object getColumnValue(int index)
          Answer the value in the specified column.
 java.lang.Object getValue()
          Answer the value held by this row.
 void setValue(java.lang.Object aValue)
          Specify the value held in this row.
 void setValue(java.lang.Object aValue, java.util.Collection columnValues)
          Specify the value held by this row, along with the column values of its presentation.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

TableRow

public TableRow()
Construct a new table row.


TableRow

public TableRow(java.lang.Object aValue)
Construct a new table row which holds the given value.


TableRow

public TableRow(java.lang.Object aValue,
                int nColumns)
Construct a new table row which holds the given value and uses the specified number of columns in the presentation.

Throws:
java.lang.IllegalArgumentException - if the specified initial capacity is negative
Method Detail

getColumnValue

public java.lang.Object getColumnValue(int index)
Answer the value in the specified column.


getValue

public java.lang.Object getValue()
Answer the value held by this row.


setValue

public void setValue(java.lang.Object aValue)
Specify the value held in this row.


setValue

public void setValue(java.lang.Object aValue,
                     java.util.Collection columnValues)
Specify the value held by this row, along with the column values of its presentation.


asVector

public static java.util.Vector asVector(java.lang.Object[] values)

GFL 1.1 API