public interface WritableTableFormat<E> extends TableFormat<E>
This class can be used as an alternative to the simple TableFormat
class to provide editable cells. The
EventTableModel
detects if a
class implements WritableTableFormat
for modifying the table. If a table
is not editable at all, it is sufficient to implement TableFormat
only.
AdvancedTableFormat
,
TableFormat
Modifier and Type | Method and Description |
---|---|
boolean |
isEditable(E baseObject,
int column)
For editing fields.
|
E |
setColumnValue(E baseObject,
java.lang.Object editedValue,
int column)
Sets the specified field of the base object to the edited value.
|
getColumnCount, getColumnName, getColumnValue
boolean isEditable(E baseObject, int column)
baseObject
- the Object to test as editable or not. This will be
an element from the source list.column
- the column to test.E setColumnValue(E baseObject, java.lang.Object editedValue, int column)
baseObject
- the Object to be edited. This will be the original
Object from the source list.editedValue
- the newly constructed value for the edited columncolumn
- the column which has been editedGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by debian at 2016-11-28 3:17