Top Description Fields Constructors Methods
org.jabref.gui.maintable

public Class PersistenceVisualStateTable

extends Object
Class Inheritance
Imports
java.util.List, java.util.stream.Collectors, javafx.beans.InvalidationListener, javafx.collections.ListChangeListener, javafx.scene.control.TableColumn, .TableView, org.jabref.gui.maintable.columns.MainTableColumn, org.slf4j.Logger, .LoggerFactory

Keep track of changes made to the columns (reordering, resorting, resizing).

Field Summary

Modifier and TypeField and Description
private static final Logger
protected final ColumnPreferences
protected final TableView<BibEntryTableViewModel>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private List<MainTableColumnModel>
private void
updateColumns()

Stores shown columns, their width and their TableColumn.SortType in preferences.

private void
updateSortOrder()

Stores the SortOrder of the Table in the preferences.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
protected final ColumnPreferences preferences
tableback to summary
protected final TableView<BibEntryTableViewModel> table

Constructor Detail

PersistenceVisualStateTableback to summary
public PersistenceVisualStateTable(TableView<BibEntryTableViewModel> table, ColumnPreferences preferences)

Method Detail

addListenersback to summary
public void addListeners()
toListback to summary
private List<MainTableColumnModel> toList(List<TableColumn<BibEntryTableViewModel, ?>> columns)
updateColumnsback to summary
private void updateColumns()

Stores shown columns, their width and their TableColumn.SortType in preferences. The conversion to the "real" string in the preferences is made at org.jabref.preferences.JabRefPreferences#getColumnSortTypesAsStringList(ColumnPreferences)

updateSortOrderback to summary
private void updateSortOrder()

Stores the SortOrder of the Table in the preferences. This includes TableColumn.SortType.
Cannot be combined with updateColumns, because JavaFX would provide just an empty list for the sort order on other changes.