Top Inners Fields Constructors Methods
org.jabref.gui.entrytype

public Class EntryTypeViewModel

extends Object
Class Inheritance
Imports
java.util.Optional, javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, javafx.concurrent.Task, .Worker, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.externalfiles.ImportHandler, org.jabref.gui.importer.NewEntryAction, org.jabref.gui.util.TaskExecutor, org.jabref.logic.importer.FetcherClientException, .FetcherException, .FetcherServerException, .IdBasedFetcher, .WebFetchers, org.jabref.logic.importer.fetcher.DoiFetcher, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, org.jabref.model.entry.types.StandardEntryType, org.jabref.model.strings.StringUtil, org.jabref.model.util.FileUpdateMonitor, 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, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final DialogService
private final ListProperty<IdBasedFetcher>
private Task<Optional<BibEntry>>
private final FileUpdateMonitor
private final BooleanProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final StringProperty
private final LibraryTab
private static final Logger
private final PreferencesService
private final BooleanProperty
private final BooleanProperty
private final ObjectProperty<IdBasedFetcher>
private final StateManager
private final TaskExecutor

Constructor Summary

AccessConstructor and Description
public
EntryTypeViewModel(PreferencesService preferences, LibraryTab libraryTab, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, FileUpdateMonitor fileUpdateMonitor)

Method Summary

Modifier and TypeMethod and Description
public void
public ListProperty<IdBasedFetcher>
public BooleanProperty
private IdBasedFetcher
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public StringProperty
public void
public BooleanProperty
public BooleanProperty
public ObjectProperty<IdBasedFetcher>
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogServiceback to summary
private final DialogService dialogService
fetchersback to summary
private final ListProperty<IdBasedFetcher> fetchers
fetcherWorkerback to summary
private Task<Optional<BibEntry>> fetcherWorker
fileUpdateMonitorback to summary
private final FileUpdateMonitor fileUpdateMonitor
focusAndSelectAllPropertyback to summary
private final BooleanProperty focusAndSelectAllProperty
idFieldValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator idFieldValidator
idTextback to summary
private final StringProperty idText
libraryTabback to summary
private final LibraryTab libraryTab
LOGGERback to summary
private static final Logger LOGGER
preferencesServiceback to summary
private final PreferencesService preferencesService
searchingPropertyback to summary
private final BooleanProperty searchingProperty
searchSuccesfulPropertyback to summary
private final BooleanProperty searchSuccesfulProperty
selectedItemPropertyback to summary
private final ObjectProperty<IdBasedFetcher> selectedItemProperty
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

EntryTypeViewModelback to summary
public EntryTypeViewModel(PreferencesService preferences, LibraryTab libraryTab, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, FileUpdateMonitor fileUpdateMonitor)

Method Detail

cancelFetcherWorkerback to summary
public void cancelFetcherWorker()
fetcherItemsPropertyback to summary
public ListProperty<IdBasedFetcher> fetcherItemsProperty()
getFocusAndSelectAllPropertyback to summary
public BooleanProperty getFocusAndSelectAllProperty()
getLastSelectedFetcherback to summary
private IdBasedFetcher getLastSelectedFetcher()
idFieldValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus idFieldValidationStatus()
idTextPropertyback to summary
public StringProperty idTextProperty()
runFetcherWorkerback to summary
public void runFetcherWorker()
searchingPropertyback to summary
public BooleanProperty searchingProperty()
searchSuccesfulPropertyback to summary
public BooleanProperty searchSuccesfulProperty()
selectedItemPropertyback to summary
public ObjectProperty<IdBasedFetcher> selectedItemProperty()
stopFetchingback to summary
public void stopFetching()
storeSelectedFetcherback to summary
public void storeSelectedFetcher()
org.jabref.gui.entrytype back to summary

private Class EntryTypeViewModel.FetcherWorker

extends Task<Optional<BibEntry>>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private IdBasedFetcher
private String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected Optional<BibEntry>
call()

Implements abstract javafx.concurrent.Task.call.

Invoked when the Task is executed, the call method must be overridden and implemented by subclasses.

Inherited from javafx.concurrent.Task:
addEventFilteraddEventHandlerbuildEventDispatchChaincancelcancelcancelledexceptionPropertyfailedfireEventgetExceptiongetMessagegetOnCancelledgetOnFailedgetOnRunninggetOnScheduledgetOnSucceededgetProgressgetStategetTitlegetTotalWorkgetValuegetWorkDoneisRunningmessagePropertyonCancelledPropertyonFailedPropertyonRunningPropertyonScheduledPropertyonSucceededPropertyprogressPropertyremoveEventFilterremoveEventHandlerrunningrunningPropertyscheduledsetEventHandlersetOnCancelledsetOnFailedsetOnRunningsetOnScheduledsetOnSucceededstatePropertysucceededtitlePropertytotalWorkPropertyupdateMessageupdateProgressupdateProgressupdateTitleupdateValuevaluePropertyworkDoneProperty

Field Detail

fetcherback to summary
private IdBasedFetcher fetcher
searchIDback to summary
private String searchID

Constructor Detail

FetcherWorkerback to summary
private FetcherWorker()

Method Detail

callback to summary
protected Optional<BibEntry> call() throws FetcherException

Implements abstract javafx.concurrent.Task.call.

Doc from javafx.concurrent.Task.call.

Invoked when the Task is executed, the call method must be overridden and implemented by subclasses. The call method actually performs the background thread logic. Only the updateProgress, updateMessage, updateValue and updateTitle methods of Task may be called from code within this method. Any other interaction with the Task from the background thread will result in runtime exceptions.

Returns:Optional<BibEntry>

The result of the background work, if any.

Annotations
@Override