Verified Owner
Top Fields Constructors Methods
org.jabref.gui.importer.fetcher

public Class WebSearchPaneView

extends VBox
Class Inheritance
Imports
javafx.beans.binding.Bindings, .BooleanExpression, javafx.beans.value.ObservableBooleanValue, javafx.css.PseudoClass, javafx.scene.control.Button, .Label, .TextField, .Tooltip, javafx.scene.input.KeyCode, javafx.scene.layout.HBox, .Priority, .StackPane, .VBox, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionFactory, .StandardActions, org.jabref.gui.clipboard.ClipBoardManager, org.jabref.gui.help.HelpAction, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.search.SearchTextField, org.jabref.gui.util.ViewModelListCellFactory, org.jabref.logic.importer.SearchBasedFetcher, org.jabref.logic.l10n.Localization, com.tobiasdiez.easybind.EasyBind, org.controlsfx.control.SearchableComboBox

Field Summary

Modifier and TypeField and Description
private final DialogService
private final GuiPreferences
private static final PseudoClass
private final StateManager
private final WebSearchPaneViewModel

Constructor Summary

AccessConstructor and Description
public
WebSearchPaneView(GuiPreferences preferences, DialogService dialogService, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
private void
private SearchableComboBox<SearchBasedFetcher>
createFetcherComboBox()

Create combo box for selecting fetcher

private StackPane
createHelpButtonContainer()

Creatse help button for currently selected fetcher

private Label
createModeIndicatorLabel()

Creates a label that indicates how the current query will be interpreted

private TextField
createQueryField()

Create text field for search query

private Button
createSearchButton()

Create button that triggers search

private void
enableEnterToTriggerSearch(TextField query)

Allows triggering search on pressing enter

private void
private ObservableBooleanValue
searchDisabledProperty()

Creates an observable boolean value that is true if no database is open

Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
preferencesback to summary
private final GuiPreferences preferences
QUERY_INVALIDback to summary
private static final PseudoClass QUERY_INVALID
stateManagerback to summary
private final StateManager stateManager
viewModelback to summary
private final WebSearchPaneViewModel viewModel

Constructor Detail

WebSearchPaneViewback to summary
public WebSearchPaneView(GuiPreferences preferences, DialogService dialogService, StateManager stateManager)

Method Detail

addQueryValidationHintsback to summary
private void addQueryValidationHints(TextField query)
createFetcherComboBoxback to summary
private SearchableComboBox<SearchBasedFetcher> createFetcherComboBox()

Create combo box for selecting fetcher

createHelpButtonContainerback to summary
private StackPane createHelpButtonContainer()

Creatse help button for currently selected fetcher

createModeIndicatorLabelback to summary
private Label createModeIndicatorLabel()

Creates a label that indicates how the current query will be interpreted

createQueryFieldback to summary
private TextField createQueryField()

Create text field for search query

createSearchButtonback to summary
private Button createSearchButton()

Create button that triggers search

enableEnterToTriggerSearchback to summary
private void enableEnterToTriggerSearch(TextField query)

Allows triggering search on pressing enter

initializeback to summary
private void initialize()
searchDisabledPropertyback to summary
private ObservableBooleanValue searchDisabledProperty()

Creates an observable boolean value that is true if no database is open