|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WritableTableFormat<E>
Specifies how to edit the elements of table.
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
Method Summary | |
---|---|
boolean |
isEditable(E baseObject,
int column)
For editing fields. |
E |
setColumnValue(E baseObject,
Object editedValue,
int column)
Sets the specified field of the base object to the edited value. |
Methods inherited from interface ca.odell.glazedlists.gui.TableFormat |
---|
getColumnCount, getColumnName, getColumnValue |
Method Detail |
---|
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, 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 edited
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |