Top Inners Fields Constructors Methods
org.jabref.gui.preferences.preview

public Class PreviewTab

extends AbstractPreferenceTabView<PreviewTabViewModel>
implements PreferencesTab
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferencesTab
Imports
java.util.ArrayList, .List, javafx.application.Platform, javafx.beans.property.ListProperty, javafx.event.ActionEvent, javafx.fxml.FXML, javafx.scene.control.Button, .CheckBox, .ContextMenu, .Label, .ListView, .SelectionMode, .Tab, javafx.scene.input.DragEvent, .Dragboard, .KeyEvent, .MouseEvent, .TransferMode, org.jabref.gui.StateManager, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.icon.IconTheme, org.jabref.gui.preferences.AbstractPreferenceTabView, .PreferencesTab, org.jabref.gui.preview.PreviewViewer, org.jabref.gui.theme.ThemeManager, org.jabref.gui.util.BindingsHelper, .FileDialogConfiguration, .IconValidationDecorator, .ViewModelListCellFactory, org.jabref.logic.l10n.Localization, org.jabref.logic.preview.PreviewLayout, org.jabref.logic.util.StandardFileType, .TestEntry, org.jabref.model.database.BibDatabaseContext, com.airhacks.afterburner.views.ViewLoader, com.tobiasdiez.easybind.EasyBind, de.saxsys.mvvmfx.utils.validation.visualization.ControlsFxVisualizer, jakarta.inject.Inject, org.controlsfx.control.textfield.CustomTextField, org.fxmisc.richtext.CodeArea, org.fxmisc.richtext.LineNumberFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private ListView<PreviewLayout>
private ListView<PreviewLayout>
private final ContextMenu
private org.fxmisc.richtext.CodeArea
private long
private String
private Tab
private Label
private Button
private org.controlsfx.control.textfield.CustomTextField
private CheckBox
private CheckBox
private Button
private Button
private StateManager
private ThemeManager
private Button
private Button
private final de.saxsys.mvvmfx.utils.validation.visualization.ControlsFxVisualizer
Inherited from org.jabref.gui.preferences.AbstractPreferenceTabView:
dialogServicepreferencesServicetaskExecutorviewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
private void
private void
private void
public String
getTabName()

Implements org.jabref.gui.preferences.PreferencesTab.getTabName.

Should return the localized identifier to use for the tab.

public void
private void
jumpToSearchKey(ListView<PreviewLayout>
The ListView currently focused
list
,
KeyEvent
The pressed character
keypressed
)

This is called, if a user starts typing some characters into the keyboard with focus on one ListView.

private void
private void
public void
private void
public void
public void
public void
public void
Inherited from org.jabref.gui.preferences.AbstractPreferenceTabView:
getBuildergetRestartWarningssetValuesstoreSettingsvalidateSettings

Field Detail

availableListViewback to summary
private ListView<PreviewLayout> availableListView
Annotations
@FXML
chosenListViewback to summary
private ListView<PreviewLayout> chosenListView
Annotations
@FXML
contextMenuback to summary
private final ContextMenu contextMenu
editAreaback to summary
private org.fxmisc.richtext.CodeArea editArea
Annotations
@FXML
lastKeyPressTimeback to summary
private long lastKeyPressTime
listSearchTermback to summary
private String listSearchTerm
previewTabback to summary
private Tab previewTab
Annotations
@FXML
readOnlyLabelback to summary
private Label readOnlyLabel
Annotations
@FXML
resetDefaultButtonback to summary
private Button resetDefaultButton
Annotations
@FXML
showAsTabCheckBoxback to summary
private CheckBox showAsTabCheckBox
Annotations
@FXML
showPreviewTooltipCheckBoxback to summary
private CheckBox showPreviewTooltipCheckBox
Annotations
@FXML
sortDownButtonback to summary
private Button sortDownButton
Annotations
@FXML
sortUpButtonback to summary
private Button sortUpButton
Annotations
@FXML
stateManagerback to summary
private StateManager stateManager
Annotations
@Inject
themeManagerback to summary
private ThemeManager themeManager
Annotations
@Inject
toLeftButtonback to summary
private Button toLeftButton
Annotations
@FXML
toRightButtonback to summary
private Button toRightButton
Annotations
@FXML
validationVisualizerback to summary
private final de.saxsys.mvvmfx.utils.validation.visualization.ControlsFxVisualizer validationVisualizer

Constructor Detail

PreviewTabback to summary
public PreviewTab()

Method Detail

dragDetectedInAvailableback to summary
private void dragDetectedInAvailable(MouseEvent event)
dragDetectedInChosenback to summary
private void dragDetectedInChosen(MouseEvent event)
dragDroppedback to summary
private void dragDropped(ListProperty<PreviewLayout> targetList, DragEvent event)
dragDroppedInChosenCellback to summary
private void dragDroppedInChosenCell(PreviewLayout targetLayout, DragEvent event)
dragOverback to summary
private void dragOver(DragEvent event)
getTabNameback to summary
public String getTabName()

Implements org.jabref.gui.preferences.PreferencesTab.getTabName.

Doc from org.jabref.gui.preferences.PreferencesTab.getTabName.

Should return the localized identifier to use for the tab.

Returns:String

Identifier for the tab (for instance "General", "Appearance" or "External Files").

Annotations
@Override
initializeback to summary
public void initialize()
jumpToSearchKeyback to summary
private void jumpToSearchKey(ListView<PreviewLayout> list, KeyEvent keypressed)

This is called, if a user starts typing some characters into the keyboard with focus on one ListView. The ListView will scroll to the next cell with the name of the PreviewLayout fitting those characters.

Parameters
list:ListView<PreviewLayout>

The ListView currently focused

keypressed:KeyEvent

The pressed character

mouseClickedAvailableback to summary
private void mouseClickedAvailable(MouseEvent event)
mouseClickedChosenback to summary
private void mouseClickedChosen(MouseEvent event)
resetDefaultButtonActionback to summary
public void resetDefaultButtonAction()
selectBstFileback to summary
private void selectBstFile(ActionEvent event)
Annotations
@FXML
sortDownButtonActionback to summary
public void sortDownButtonAction()
sortUpButtonActionback to summary
public void sortUpButtonAction()
toLeftButtonActionback to summary
public void toLeftButtonAction()
toRightButtonActionback to summary
public void toRightButtonAction()
org.jabref.gui.preferences.preview back to summary

private Class PreviewTab.EditAction

extends SimpleCommand
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final StandardActions
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

commandback to summary
private final StandardActions command

Constructor Detail

EditActionback to summary
public EditAction(StandardActions command)

Method Detail

executeback to summary
public void execute()
Annotations
@Override