Top Fields Constructors Methods
org.jabref.gui.preferences.table

public Class TableTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.util.EnumSet, javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, javafx.scene.control.SelectionModel, javafx.util.StringConverter, org.jabref.gui.DialogService, org.jabref.gui.externalfiletype.ExternalFileType, org.jabref.gui.maintable.ColumnPreferences, .MainTableColumnModel, .MainTablePreferences, .NameDisplayPreferences, .NameDisplayPreferences.AbbreviationStyle, .NameDisplayPreferences.DisplayStyle, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.specialfields.SpecialFieldsPreferences, org.jabref.gui.util.NoSelectionModel, org.jabref.logic.l10n.Localization, org.jabref.model.entry.field.Field, .InternalField, .SpecialField, .StandardField, org.jabref.preferences.PreferencesService, de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator, de.saxsys.mvvmfx.utils.validation.ValidationMessage, de.saxsys.mvvmfx.utils.validation.ValidationStatus, de.saxsys.mvvmfx.utils.validation.Validator

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final ObjectProperty<MainTableColumnModel>
private final BooleanProperty
private final ListProperty<MainTableColumnModel>
pack-priv static StringConverter<MainTableColumnModel>
private final ListProperty<MainTableColumnModel>
private final de.saxsys.mvvmfx.utils.validation.Validator
private final DialogService
private final BooleanProperty
private ColumnPreferences
private final MainTablePreferences
private final BooleanProperty
private final NameDisplayPreferences
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final PreferencesService
private final ObjectProperty<SelectionModel<MainTableColumnModel>>
private final BooleanProperty
private final SpecialFieldsPreferences

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
public BooleanProperty
public BooleanProperty
public ObjectProperty<MainTableColumnModel>
public BooleanProperty
public ListProperty<MainTableColumnModel>
public ListProperty<MainTableColumnModel>
pack-priv de.saxsys.mvvmfx.utils.validation.ValidationStatus
public BooleanProperty
public void
public void
private void
private void
public void
public void
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public void
private void
private void
public ObjectProperty<SelectionModel<MainTableColumnModel>>
public void
setValues()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

This method is called when the dialog is opened, or if it is made visible after being hidden.

public BooleanProperty
public void
storeSettings()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

This method is called when the user presses OK in the Preferences dialog.

public boolean
validateSettings()

Overrides default org.jabref.gui.preferences.PreferenceTabViewModel.validateSettings.

This method is called before the storeSettings() method, to check if there are illegal settings in the tab, or if is ready to be closed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abbreviationDisabledPropertyback to summary
private final BooleanProperty abbreviationDisabledProperty
abbreviationEnabledPropertyback to summary
private final BooleanProperty abbreviationEnabledProperty
abbreviationLastNameOnlyPropertyback to summary
private final BooleanProperty abbreviationLastNameOnlyProperty
addColumnPropertyback to summary
private final ObjectProperty<MainTableColumnModel> addColumnProperty
autoResizeColumnsPropertyback to summary
private final BooleanProperty autoResizeColumnsProperty
availableColumnsPropertyback to summary
private final ListProperty<MainTableColumnModel> availableColumnsProperty
columnNameStringConverterback to summary
pack-priv static StringConverter<MainTableColumnModel> columnNameStringConverter
columnsListPropertyback to summary
private final ListProperty<MainTableColumnModel> columnsListProperty
columnsNotEmptyValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator columnsNotEmptyValidator
dialogServiceback to summary
private final DialogService dialogService
extraFileColumnsEnabledPropertyback to summary
private final BooleanProperty extraFileColumnsEnabledProperty
initialColumnPreferencesback to summary
private ColumnPreferences initialColumnPreferences
mainTablePreferencesback to summary
private final MainTablePreferences mainTablePreferences
nameAsIsPropertyback to summary
private final BooleanProperty nameAsIsProperty
nameDisplayPreferencesback to summary
private final NameDisplayPreferences nameDisplayPreferences
nameFirstLastPropertyback to summary
private final BooleanProperty nameFirstLastProperty
nameLastFirstPropertyback to summary
private final BooleanProperty nameLastFirstProperty
namesNatbibPropertyback to summary
private final BooleanProperty namesNatbibProperty
preferencesback to summary
private final PreferencesService preferences
selectedColumnModelPropertyback to summary
private final ObjectProperty<SelectionModel<MainTableColumnModel>> selectedColumnModelProperty
specialFieldsEnabledPropertyback to summary
private final BooleanProperty specialFieldsEnabledProperty
specialFieldsPreferencesback to summary
private final SpecialFieldsPreferences specialFieldsPreferences

Constructor Detail

TableTabViewModelback to summary
public TableTabViewModel(DialogService dialogService, PreferencesService preferences)

Method Detail

abbreviationDisabledPropertyback to summary
public BooleanProperty abbreviationDisabledProperty()
abbreviationEnabledPropertyback to summary
public BooleanProperty abbreviationEnabledProperty()
abbreviationLastNameOnlyPropertyback to summary
public BooleanProperty abbreviationLastNameOnlyProperty()
addColumnPropertyback to summary
public ObjectProperty<MainTableColumnModel> addColumnProperty()
autoResizeColumnsPropertyback to summary
public BooleanProperty autoResizeColumnsProperty()
availableColumnsPropertyback to summary
public ListProperty<MainTableColumnModel> availableColumnsProperty()
columnsListPropertyback to summary
public ListProperty<MainTableColumnModel> columnsListProperty()
columnsListValidationStatusback to summary
pack-priv de.saxsys.mvvmfx.utils.validation.ValidationStatus columnsListValidationStatus()
extraFileColumnsEnabledPropertyback to summary
public BooleanProperty extraFileColumnsEnabledProperty()
fillColumnListback to summary
public void fillColumnList()
insertColumnInListback to summary
public void insertColumnInList()
insertExtraFileColumnsback to summary
private void insertExtraFileColumns()
insertSpecialFieldColumnsback to summary
private void insertSpecialFieldColumns()
moveColumnDownback to summary
public void moveColumnDown()
moveColumnUpback to summary
public void moveColumnUp()
nameAsIsPropertyback to summary
public BooleanProperty nameAsIsProperty()
nameFirstLastPropertyback to summary
public BooleanProperty nameFirstLastProperty()
nameLastFirstPropertyback to summary
public BooleanProperty nameLastFirstProperty()
namesNatbibPropertyback to summary
public BooleanProperty namesNatbibProperty()
removeColumnback to summary
public void removeColumn(MainTableColumnModel column)
removeExtraFileColumnsback to summary
private void removeExtraFileColumns()
removeSpecialFieldColumnsback to summary
private void removeSpecialFieldColumns()
selectedColumnModelPropertyback to summary
public ObjectProperty<SelectionModel<MainTableColumnModel>> selectedColumnModelProperty()
setValuesback to summary
public void setValues()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

Doc from org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

This method is called when the dialog is opened, or if it is made visible after being hidden. The tab should update all its values. This is the ONLY PLACE to set values for the fields in the tab. It is ILLEGAL to set values only at construction time, because the dialog will be reused and updated.

Annotations
@Override
specialFieldsEnabledPropertyback to summary
public BooleanProperty specialFieldsEnabledProperty()
storeSettingsback to summary
public void storeSettings()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

Doc from org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

This method is called when the user presses OK in the Preferences dialog. Implementing classes must make sure all settings presented get stored in PreferencesService.

Annotations
@Override
validateSettingsback to summary
public boolean validateSettings()

Overrides default org.jabref.gui.preferences.PreferenceTabViewModel.validateSettings.

Doc from org.jabref.gui.preferences.PreferenceTabViewModel.validateSettings.

This method is called before the storeSettings() method, to check if there are illegal settings in the tab, or if is ready to be closed. If the tab is *not* ready, it should display a message to the user informing about the illegal setting.

Annotations
@Override