Verified Owner
Top Fields Constructors Methods
org.jabref.logic.preferences

public Class LastFilesOpenedPreferences

extends Object
Class Inheritance
Imports
java.nio.file.Path, java.util.List, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ObservableList, org.jabref.logic.util.io.FileHistory, org.jspecify.annotations.Nullable

Field Summary

Modifier and TypeField and Description
private final FileHistory
private final ObservableList<Path>
private final ObjectProperty<Path>
private final ObservableList<String>

Constructor Summary

AccessConstructor and Description
private
public
LastFilesOpenedPreferences(List<Path> lastFilesOpened, @Nullable Path lastFocusedFile, FileHistory fileHistory)

public
LastFilesOpenedPreferences(List<Path> lastFilesOpened, @Nullable Path lastFocusedFile, List<String> lastSharedDatabasesOpened, FileHistory fileHistory)

Method Summary

Modifier and TypeMethod and Description
public static LastFilesOpenedPreferences
public FileHistory
public ObservableList<Path>
public Path
public ObservableList<String>
public ObjectProperty<Path>
public void
public void
setLastFocusedFile(Path lastFocusedFile)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileHistoryback to summary
private final FileHistory fileHistory
lastFilesOpenedback to summary
private final ObservableList<Path> lastFilesOpened
lastFocusedFileback to summary
private final ObjectProperty<Path> lastFocusedFile
lastSharedDatabasesOpenedback to summary
private final ObservableList<String> lastSharedDatabasesOpened

Constructor Detail

LastFilesOpenedPreferencesback to summary
private LastFilesOpenedPreferences()
LastFilesOpenedPreferencesback to summary
public LastFilesOpenedPreferences(List<Path> lastFilesOpened, @Nullable Path lastFocusedFile, FileHistory fileHistory)
LastFilesOpenedPreferencesback to summary
public LastFilesOpenedPreferences(List<Path> lastFilesOpened, @Nullable Path lastFocusedFile, List<String> lastSharedDatabasesOpened, FileHistory fileHistory)

Method Detail

getDefaultback to summary
public static LastFilesOpenedPreferences getDefault()
getFileHistoryback to summary
public FileHistory getFileHistory()
getLastFilesOpenedback to summary
public ObservableList<Path> getLastFilesOpened()
getLastFocusedFileback to summary
public Path getLastFocusedFile()
getLastSharedDatabasesOpenedback to summary
public ObservableList<String> getLastSharedDatabasesOpened()
lastFocusedFilePropertyback to summary
public ObjectProperty<Path> lastFocusedFileProperty()
setLastFilesOpenedback to summary
public void setLastFilesOpened(List<Path> files)
setLastFocusedFileback to summary
public void setLastFocusedFile(Path lastFocusedFile)
setLastSharedDatabasesOpenedback to summary
public void setLastSharedDatabasesOpened(List<String> sharedDatabaseIds)