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, setString
public 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()
Column
Column.getRowCount()
public void setMaximumRow(int nrows)
Column
nrows
- the number of rowsColumn.setMaximumRow(int)
public void revertToDefault(int row)
AbstractColumn
revertToDefault
in interface Column
revertToDefault
in class AbstractColumn
public 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 valueCopyright ? 2013 Regents of the University of California