public class DefaultFXTableFormat<E> extends Object implements FXTableFormat<E>
FXTableFormat
.FXTableFormat.Option, FXTableFormat.Options
Modifier and Type | Field and Description |
---|---|
protected String[] |
columnNames |
protected ColumnReader[] |
columnReaders |
protected String[] |
columnTitles |
protected TableCellFactory[] |
tableCellFactories |
Constructor and Description |
---|
DefaultFXTableFormat(FXTableFormat.Options... options)
Creates a
FXTableFormat based on the supplied options. |
DefaultFXTableFormat(List<Map<String,Object>> options)
Creates a
FXTableFormat based on the supplied options. |
DefaultFXTableFormat(String[] columnNames) |
DefaultFXTableFormat(String[] columnNames,
String[] columnTitles,
ColumnReader[] columnReaders) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
String |
getColumnName(int column) |
javafx.beans.value.ObservableValue<?> |
getColumnObservableValue(E baseObject,
int column)
Gets the observable value of the specified field for the specified object.
|
Object |
getColumnValue(E baseObject,
int column) |
TableCellFactory |
getTableCellFactory(int column) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
option, options
protected final String[] columnNames
protected final String[] columnTitles
protected final ColumnReader[] columnReaders
protected final TableCellFactory[] tableCellFactories
public DefaultFXTableFormat(@Nonnull String[] columnNames, @Nonnull String[] columnTitles, @Nonnull ColumnReader[] columnReaders)
public DefaultFXTableFormat(@Nonnull FXTableFormat.Options... options)
FXTableFormat
based on the supplied options.
Valid option keys are name, title and reader.
options
- the options that configure this formatpublic int getColumnCount()
getColumnCount
in interface ca.odell.glazedlists.gui.TableFormat<E>
public String getColumnName(int column)
getColumnName
in interface ca.odell.glazedlists.gui.TableFormat<E>
public Object getColumnValue(E baseObject, int column)
getColumnValue
in interface ca.odell.glazedlists.gui.TableFormat<E>
public javafx.beans.value.ObservableValue<?> getColumnObservableValue(E baseObject, int column)
FXTableFormat
getColumnObservableValue
in interface FXTableFormat<E>
@Nonnull public TableCellFactory getTableCellFactory(int column)
getTableCellFactory
in interface FXTableFormat<E>