This is the table-to-preferences direction. The opposite direction is ColumnPreferencesApplier.
Resizing and changing the sort type need no listener here: the preferences receive the column models of the
table itself, and ColumnPreferences reports changes of their properties.
| Modifier and Type | Field and Description |
|---|---|
| private final InvalidationListener | |
| private static final Logger | |
| protected final ColumnPreferences | |
| private final ListChangeListener | |
| protected final TableView |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv static List | toPersistedModels(List<? extends TableColumn<BibEntryTableViewModel, ?>> columns)
Returns the models of the given columns as they are stored in the preferences. |
| public void | |
| private void | |
| private void |
| columnsListener | back to summary |
|---|---|
| private final InvalidationListener columnsListener | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| protected final ColumnPreferences preferences | |
| sortOrderListener | back to summary |
|---|---|
| private final ListChangeListener<TableColumn<BibEntryTableViewModel, ?>> sortOrderListener | |
| table | back to summary |
|---|---|
| protected final TableView<BibEntryTableViewModel> table | |
| ColumnPreferencesRecorder | back to summary |
|---|---|
| public ColumnPreferencesRecorder(TableView<BibEntryTableViewModel> table, ColumnPreferences preferences) | |
| bind | back to summary |
|---|---|
| public void bind() | |
| toPersistedModels | back to summary |
|---|---|
| pack-priv static List Returns the models of the given columns as they are stored in the preferences.
| |
| unbind | back to summary |
|---|---|
| public void unbind() | |
| updateColumns | back to summary |
|---|---|
| private void updateColumns() Stores shown columns, their width and their | |
| updateSortOrder | back to summary |
|---|---|
| private void updateSortOrder() Stores the SortOrder of the Table in the preferences. This includes Cannot be combined with updateColumns, because JavaFX would provide just an empty list for the sort order on other changes. | |