public class DefaultTableViewModel<E> extends Object implements TableViewModel<E>
| Modifier and Type | Field and Description |
|---|---|
protected List<TableColumn<E,Object>> |
columns |
protected TableViewFormat<E> |
format |
protected ObservableList<E> |
source |
| Constructor and Description |
|---|
DefaultTableViewModel(ObservableList<E> source,
TableViewFormat<E> format) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachTo(TableView<E> tableView) |
protected void |
computeColumns() |
void |
detachFrom(TableView<E> tableView) |
TableColumn<E,?> |
getColumnAt(int index) |
TableViewFormat<E> |
getFormat() |
ObservableList<E> |
getSource() |
protected void |
resizeColumns() |
protected final ObservableList<E> source
protected final TableViewFormat<E> format
protected final List<TableColumn<E,Object>> columns
public DefaultTableViewModel(@Nonnull ObservableList<E> source, @Nonnull TableViewFormat<E> format)
protected void computeColumns()
public ObservableList<E> getSource()
getSource in interface TableViewModel<E>public TableViewFormat<E> getFormat()
getFormat in interface TableViewModel<E>public TableColumn<E,?> getColumnAt(int index)
getColumnAt in interface TableViewModel<E>public void attachTo(@Nonnull TableView<E> tableView)
attachTo in interface TableViewModel<E>protected void resizeColumns()
public void detachFrom(@Nonnull TableView<E> tableView)
detachFrom in interface TableViewModel<E>