Verified Owner
Top Fields Constructors Methods
org.jabref.gui.preferences.git

public Class GitTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Annotations
@NullMarked
Imports
java.util.Optional, javafx.beans.property.BooleanProperty, .ReadOnlyBooleanProperty, .SimpleBooleanProperty, .SimpleStringProperty, .StringProperty, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.logic.git.preferences.GitPreferences, org.jabref.logic.l10n.Localization, org.jabref.logic.os.OS, de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator, de.saxsys.mvvmfx.utils.validation.ValidationMessage, de.saxsys.mvvmfx.utils.validation.ValidationStatus, de.saxsys.mvvmfx.utils.validation.Validator, org.jspecify.annotations.NullMarked

Field Summary

Modifier and TypeField and Description
private final GitPreferences
private final BooleanProperty
private final StringProperty
private final BooleanProperty
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final StringProperty

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Optional<Integer>
public ReadOnlyBooleanProperty
public StringProperty
public BooleanProperty
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
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 StringProperty
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

gitPreferencesback to summary
private final GitPreferences gitPreferences
passwordPersistAvailableback to summary
private final BooleanProperty passwordPersistAvailable
patPropertyback to summary
private final StringProperty patProperty
persistPatPropertyback to summary
private final BooleanProperty persistPatProperty
pullIntervalInMinutesPropertyback to summary
private final StringProperty pullIntervalInMinutesProperty
pullIntervalValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator pullIntervalValidator
usernamePropertyback to summary
private final StringProperty usernameProperty

Constructor Detail

GitTabViewModelback to summary
public GitTabViewModel(GitPreferences gitPreferences)

Method Detail

getIntervalAsIntback to summary
private Optional<Integer> getIntervalAsInt(String value)
passwordPersistAvailableback to summary
public ReadOnlyBooleanProperty passwordPersistAvailable()
patPropertyback to summary
public StringProperty patProperty()
persistPatPropertyback to summary
public BooleanProperty persistPatProperty()
pullIntervalInMinutesPropertyback to summary
public StringProperty pullIntervalInMinutesProperty()
pullIntervalValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus pullIntervalValidationStatus()
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
usernamePropertyback to summary
public StringProperty usernameProperty()
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