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

public Class ExternalTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.util.HashMap, javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, javafx.scene.control.ButtonType, .DialogPane, org.jabref.gui.DialogService, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.push.PushToApplication, .PushToApplicationSettings, .PushToApplications, .PushToEmacs, org.jabref.gui.util.FileDialogConfiguration, org.jabref.logic.l10n.Localization, org.jabref.logic.push.CitationCommandString, org.jabref.model.strings.StringUtil, org.jabref.preferences.ExternalApplicationsPreferences, .PreferencesService, .PushToApplicationPreferences, de.saxsys.mvvmfx.utils.validation.CompositeValidator, 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 StringProperty
private final StringProperty
private final StringProperty
private final DialogService
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final FileDialogConfiguration
private final ExternalApplicationsPreferences
private final PushToApplicationPreferences
private final StringProperty
private final PreferencesService
private final ListProperty<PushToApplication>
private final ObjectProperty<PushToApplication>
private final de.saxsys.mvvmfx.utils.validation.Validator
private final BooleanProperty
private final BooleanProperty
private final PushToApplicationPreferences

Constructor Summary

AccessConstructor and Description
public
ExternalTabViewModel(DialogService dialogService, PreferencesService preferencesService)

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
public StringProperty
public void
public StringProperty
public void
public StringProperty
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public StringProperty
public void
public ListProperty<PushToApplication>
public void
public ObjectProperty<PushToApplication>
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 void
storeSettings()

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

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

public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public BooleanProperty
public BooleanProperty
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

autoOpenAttachedFoldersPropertyback to summary
private final BooleanProperty autoOpenAttachedFoldersProperty
citeCommandPropertyback to summary
private final StringProperty citeCommandProperty
customFileBrowserCommandPropertyback to summary
private final StringProperty customFileBrowserCommandProperty
customTerminalCommandPropertyback to summary
private final StringProperty customTerminalCommandProperty
dialogServiceback to summary
private final DialogService dialogService
eMailReferenceSubjectPropertyback to summary
private final StringProperty eMailReferenceSubjectProperty
fileBrowserCommandValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator fileBrowserCommandValidator
fileDialogConfigurationback to summary
private final FileDialogConfiguration fileDialogConfiguration
initialExternalApplicationPreferencesback to summary
private final ExternalApplicationsPreferences initialExternalApplicationPreferences
initialPushToApplicationPreferencesback to summary
private final PushToApplicationPreferences initialPushToApplicationPreferences
kindleEmailPropertyback to summary
private final StringProperty kindleEmailProperty
preferencesback to summary
private final PreferencesService preferences
pushToApplicationsListPropertyback to summary
private final ListProperty<PushToApplication> pushToApplicationsListProperty
selectedPushToApplicationPropertyback to summary
private final ObjectProperty<PushToApplication> selectedPushToApplicationProperty
terminalCommandValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator terminalCommandValidator
useCustomFileBrowserPropertyback to summary
private final BooleanProperty useCustomFileBrowserProperty
useCustomTerminalPropertyback to summary
private final BooleanProperty useCustomTerminalProperty
workingPushToApplicationPreferencesback to summary
private final PushToApplicationPreferences workingPushToApplicationPreferences

Constructor Detail

ExternalTabViewModelback to summary
public ExternalTabViewModel(DialogService dialogService, PreferencesService preferencesService)

Method Detail

autoOpenAttachedFoldersPropertyback to summary
public BooleanProperty autoOpenAttachedFoldersProperty()
citeCommandPropertyback to summary
public StringProperty citeCommandProperty()
customFileBrowserBrowseback to summary
public void customFileBrowserBrowse()
customFileBrowserCommandPropertyback to summary
public StringProperty customFileBrowserCommandProperty()
customTerminalBrowseback to summary
public void customTerminalBrowse()
customTerminalCommandPropertyback to summary
public StringProperty customTerminalCommandProperty()
eMailReferenceSubjectPropertyback to summary
public StringProperty eMailReferenceSubjectProperty()
fileBrowserCommandValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus fileBrowserCommandValidationStatus()
kindleEmailPropertyback to summary
public StringProperty kindleEmailProperty()
pushToApplicationSettingsback to summary
public void pushToApplicationSettings()
pushToApplicationsListPropertyback to summary
public ListProperty<PushToApplication> pushToApplicationsListProperty()
resetCiteCommandToDefaultback to summary
public void resetCiteCommandToDefault()
selectedPushToApplicationback to summary
public ObjectProperty<PushToApplication> selectedPushToApplication()
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
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
terminalCommandValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus terminalCommandValidationStatus()
useCustomFileBrowserPropertyback to summary
public BooleanProperty useCustomFileBrowserProperty()
useCustomTerminalPropertyback to summary
public BooleanProperty useCustomTerminalProperty()
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