public class ObjectColumn extends AbstractColumn
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly| Constructor and Description |
|---|
ObjectColumn()
Create a new empty ObjectColumn.
|
ObjectColumn(java.lang.Class type)
Create a new ObjectColumn.
|
ObjectColumn(java.lang.Class type,
int nRows)
Create a new ObjectColumn.
|
ObjectColumn(java.lang.Class type,
int nRows,
int capacity,
java.lang.Object defaultValue)
Create a new ObjectColumn.
|
ObjectColumn(int nRows)
Create a new ObjectColumn.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int row)
Get the data value at the specified row
|
int |
getRowCount()
Returns the number of rows in this data column
|
void |
revertToDefault(int row)
Reverts the specified row back to the column's default value.
|
void |
set(java.lang.Object val,
int row)
Set the data value at the specified row
|
void |
setMaximumRow(int nRows)
Sets the number of rows in this data column
|
addColumnListener, canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, getBoolean, getColumnType, getDate, getDefaultValue, getDouble, getFloat, getInt, getLong, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, setBoolean, setDate, setDefaultValue, setDouble, setFloat, setInt, setLong, setParser, setReadOnly, setStringpublic ObjectColumn()
public ObjectColumn(java.lang.Class type)
type - the data type of Objects in this columnpublic ObjectColumn(int nRows)
nRows - the initial size of the columnpublic ObjectColumn(java.lang.Class type,
int nRows)
type - the data type of Objects in this columnnRows - the initial size of the columnpublic ObjectColumn(java.lang.Class type,
int nRows,
int capacity,
java.lang.Object defaultValue)
type - the data type of Objects in this columnnRows - the initial size of the columncapacity - the initial capacity of the columndefaultValue - the default value for the column. If this value
is cloneable, it will be cloned when assigned as defaultValue, otherwise
the input reference will be used for every default value.public int getRowCount()
ColumnColumn.getRowCount()public void setMaximumRow(int nRows)
ColumnnRows - the number of rowsColumn.setMaximumRow(int)public void revertToDefault(int row)
AbstractColumnrevertToDefault in interface ColumnrevertToDefault in class AbstractColumnpublic java.lang.Object get(int row)
row - the row from which to retrieve the valuepublic void set(java.lang.Object val,
int row)
val - the value to setrow - the row at which to set the value