public class BooleanColumn extends AbstractColumn
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly| Constructor and Description |
|---|
BooleanColumn()
Create an empty BooleanColumn.
|
BooleanColumn(int nRows)
Create a new BooleanColumn.
|
BooleanColumn(int nRows,
int capacity,
boolean defaultValue)
Create a new BooleanColumn.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int row)
Get the data value at the specified row
|
boolean |
getBoolean(int row)
Get the data value at the specified row as a boolean
|
int |
getRowCount()
Returns the number of rows in this data column
|
void |
set(java.lang.Object val,
int row)
Set the data value at the specified row
|
void |
setBoolean(boolean val,
int row)
Set the data value at the specified row as a boolean
|
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, getColumnType, getDate, getDefaultValue, getDouble, getFloat, getInt, getLong, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, revertToDefault, setDate, setDefaultValue, setDouble, setFloat, setInt, setLong, setParser, setReadOnly, setStringpublic BooleanColumn()
public BooleanColumn(int nRows)
nRows - the initial size of the columnpublic BooleanColumn(int nRows,
int capacity,
boolean defaultValue)
nRows - the initial size of the columncapacity - the initial capacity of the columndefaultValue - the default value for the columnpublic int getRowCount()
ColumnColumn.getRowCount()public void setMaximumRow(int nRows)
ColumnnRows - the number of rowsColumn.setMaximumRow(int)public java.lang.Object get(int row)
Columnrow - the row from which to retrieve the valueColumn.get(int)public void set(java.lang.Object val,
int row)
throws DataTypeException
Columnval - the value to setrow - the row at which to set the valueDataTypeExceptionColumn.set(java.lang.Object, int)public boolean getBoolean(int row)
throws DataTypeException
AbstractColumngetBoolean in interface ColumngetBoolean in class AbstractColumnrow - the row from which to retrieve the valueDataTypeException - if this column does not
support the boolean typeAbstractColumn.getBoolean(int)public void setBoolean(boolean val,
int row)
throws DataTypeException
AbstractColumnsetBoolean in interface ColumnsetBoolean in class AbstractColumnval - the value to setrow - the row at which to set the valueDataTypeException - if this column does not
support the boolean typeAbstractColumn.setBoolean(boolean, int)