|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Column
Interface for a data column in a table.
Method Summary | |
---|---|
void |
addColumnListener(ColumnListener listener)
Adds a listener to be notified when this column changes |
boolean |
canGet(java.lang.Class type)
Indicates if the get method can be called without an exception being thrown for the given type. |
boolean |
canGetBoolean()
Indicates if convenience get method can be called without an exception being thrown for the boolean type. |
boolean |
canGetDate()
Indicates if convenience get method can be called without an exception being thrown for the Date type. |
boolean |
canGetDouble()
Indicates if convenience get method can be called without an exception being thrown for the double type. |
boolean |
canGetFloat()
Indicates if convenience get method can be called without an exception being thrown for the float type. |
boolean |
canGetInt()
Indicates if convenience get method can be called without an exception being thrown for the int type. |
boolean |
canGetLong()
Indicates if convenience get method can be called without an exception being thrown for the long type. |
boolean |
canGetString()
Indicates if convenience get method can be called without an exception being thrown for the String type. |
boolean |
canSet(java.lang.Class type)
Indicates if the set method can be called without an exception being thrown for the given type. |
boolean |
canSetBoolean()
Indicates if convenience set method can be called without an exception being thrown for the boolean type. |
boolean |
canSetDate()
Indicates if convenience set method can be called without an exception being thrown for the Date type. |
boolean |
canSetDouble()
Indicates if convenience set method can be called without an exception being thrown for the double type. |
boolean |
canSetFloat()
Indicates if convenience set method can be called without an exception being thrown for the float type. |
boolean |
canSetInt()
Indicates if convenience set method can be called without an exception being thrown for the int type. |
boolean |
canSetLong()
Indicates if convenience set method can be called without an exception being thrown for the long type. |
boolean |
canSetString()
Indicates if convenience set method can be called without an exception being thrown for the String type. |
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 |
java.lang.Class |
getColumnType()
Returns the most specific superclass for the values in the column |
java.util.Date |
getDate(int row)
Get the data value at the specified row as a Date |
java.lang.Object |
getDefaultValue()
Returns the default value for rows that have not been set explicitly. |
double |
getDouble(int row)
Get the data value at the specified row as a double |
float |
getFloat(int row)
Get the data value at the specified row as a float |
int |
getInt(int row)
Get the data value at the specified row as an integer |
long |
getLong(int row)
Get the data value at the specified row as a long |
DataParser |
getParser()
Get the data parser used to map String values to and from the values stored by this Column. |
int |
getRowCount()
Returns the number of rows in this data column |
java.lang.String |
getString(int row)
Get the data value at the specified row as a String |
boolean |
isCellEditable(int row)
Indicates if the value at the given row can be edited. |
boolean |
isReadOnly()
Indicates if the values in this column are read-only. |
void |
removeColumnListener(ColumnListener listener)
Removes a listener, causing it to no longer be notified of changes |
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 |
setBoolean(boolean val,
int row)
Set the data value at the specified row as a boolean |
void |
setDate(java.util.Date val,
int row)
Set the data value at the specified row as a Date |
void |
setDouble(double val,
int row)
Set the data value at the specified row as a double |
void |
setFloat(float val,
int row)
Set the data value at the specified row as a float |
void |
setInt(int val,
int row)
Set the data value at the specified row as an integer |
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 |
void |
setParser(DataParser parser)
Set the data parser used to map String values to and from the values stored by this Column. |
void |
setReadOnly(boolean readOnly)
Sets if the values in this column are read-only |
void |
setString(java.lang.String val,
int row)
Set the data value at the specified row as a String |
Method Detail |
---|
int getRowCount()
void setMaximumRow(int nrows)
nrows
- the number of rowsboolean isReadOnly()
void setReadOnly(boolean readOnly)
readOnly
- true to ensure the values can not be edited,
false otherwiseboolean isCellEditable(int row)
row
- the row to check
java.lang.Class getColumnType()
DataParser getParser()
void setParser(DataParser parser)
parser
- the DataParser to usevoid addColumnListener(ColumnListener listener)
listener
- the ColumnListener to addvoid removeColumnListener(ColumnListener listener)
listener
- the ColumnListener to removejava.lang.Object getDefaultValue()
void revertToDefault(int row)
row
- boolean canGet(java.lang.Class type)
type
- the Class of the data type to check
boolean canSet(java.lang.Class type)
type
- the Class of the data type to check
java.lang.Object get(int row)
row
- the row from which to retrieve the value
void set(java.lang.Object val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
boolean canGetInt()
boolean canSetInt()
int getInt(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the integer typevoid setInt(int val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the integer typeboolean canGetLong()
boolean canSetLong()
long getLong(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the long typevoid setLong(long val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the long typeboolean canGetFloat()
boolean canSetFloat()
float getFloat(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the float typevoid setFloat(float val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the float typeboolean canGetDouble()
boolean canSetDouble()
double getDouble(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the double typevoid setDouble(double val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the double typeboolean canGetBoolean()
boolean canSetBoolean()
boolean getBoolean(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the boolean typevoid setBoolean(boolean val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the boolean typeboolean canGetString()
boolean canSetString()
java.lang.String getString(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the String typevoid setString(java.lang.String val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the String typeboolean canGetDate()
boolean canSetDate()
java.util.Date getDate(int row) throws DataTypeException
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the Date typevoid setDate(java.util.Date val, int row) throws DataTypeException
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the Date type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |