public class DateColumn extends AbstractColumn
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly| Constructor and Description |
|---|
DateColumn()
Create a new empty DateColumn.
|
DateColumn(java.lang.Class type,
int nRows)
Create a new DateColumn.
|
DateColumn(java.lang.Class type,
int nRows,
int capacity,
long defaultValue)
Create a new DateColumn.
|
DateColumn(int nRows)
Create a new DateColumn.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSet(java.lang.Class type)
Indicates if the set method can be called without
an exception being thrown for the given type.
|
java.lang.Object |
get(int row)
Get the data value at the specified row
|
double |
getDouble(int row)
Get the data value at the specified row as a double
|
long |
getLong(int row)
Get the data value at the specified row as a long
|
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 |
setLong(long val,
int row)
Set the data value at the specified row as a long
|
void |
setMaximumRow(int nRows)
Sets the number of rows in this data column
|
addColumnListener, canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, getBoolean, getColumnType, getDate, getDefaultValue, getFloat, getInt, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, revertToDefault, setBoolean, setDate, setDefaultValue, setDouble, setFloat, setInt, setParser, setReadOnly, setStringpublic DateColumn()
public DateColumn(int nRows)
nRows - the initial size of the columnpublic DateColumn(java.lang.Class type,
int nRows)
type - the exact data type (must be an instance or
subclass of java.util.Date)nRows - the initial size of the columnpublic DateColumn(java.lang.Class type,
int nRows,
int capacity,
long defaultValue)
type - the exact data type (must be an instance or
subclass of java.util.Date)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 boolean canSet(java.lang.Class type)
canSet in interface ColumncanSet in class AbstractColumntype - the Class of the data type to checkpublic 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 long getLong(int row)
throws DataTypeException
AbstractColumngetLong in interface ColumngetLong in class AbstractColumnrow - the row from which to retrieve the valueDataTypeException - if this column does not
support the long typeAbstractColumn.getLong(int)public void setLong(long val,
int row)
throws DataTypeException
AbstractColumnsetLong in interface ColumnsetLong in class AbstractColumnval - the value to setrow - the row at which to set the valueDataTypeException - if this column does not
support the long typeAbstractColumn.setLong(long, int)public double getDouble(int row)
throws DataTypeException
AbstractColumngetDouble in interface ColumngetDouble in class AbstractColumnrow - the row from which to retrieve the valueDataTypeException - if this column does not
support the double typeColumn.getDouble(int)