public class DefaultFXWritableTableFormat<E> extends DefaultFXTableFormat<E> implements FXWritableTableFormat<E>
FXTableFormat
.FXTableFormat.Option, FXTableFormat.Options
Modifier and Type | Field and Description |
---|---|
protected ColumnEdit[] |
columnEdits |
protected ColumnWriter[] |
columnWriters |
columnNames, columnReaders, columnTitles, tableCellFactories
Constructor and Description |
---|
DefaultFXWritableTableFormat(FXTableFormat.Options... options)
Creates a
FXTableFormat based on the supplied options. |
DefaultFXWritableTableFormat(List<Map<String,Object>> options)
Creates a
FXTableFormat based on the supplied options. |
Modifier and Type | Method and Description |
---|---|
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.
|
getColumnCount, getColumnName, getColumnObservableValue, getColumnValue, getTableCellFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnObservableValue, getTableCellFactory, option, options
protected final ColumnWriter[] columnWriters
protected final ColumnEdit[] columnEdits
public DefaultFXWritableTableFormat(@Nonnull FXTableFormat.Options... options)
FXTableFormat
based on the supplied options.
Valid option keys are name, title, reader, writer, editable and tableCellFactory.
options
- the options that configure this formatpublic DefaultFXWritableTableFormat(@Nonnull List<Map<String,Object>> options)
FXTableFormat
based on the supplied options.
Valid option keys are name, title, reader, writer, editable and tableCellFactory.
options
- the options that configure this formatpublic boolean isEditable(@Nonnull E baseObject, int column)
FXWritableTableFormat
isEditable
in interface FXWritableTableFormat<E>
column
- the column to test.@Nonnull public E setColumnValue(@Nonnull E baseObject, Object editedValue, int column)
FXWritableTableFormat
setColumnValue
in interface FXWritableTableFormat<E>
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