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

public Class PreviewTab

extends AbstractPreferenceTabView<PreviewTabViewModel>
Class Inheritance
Imports
java.util.ArrayList, .List, javafx.beans.property.ListProperty, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.Button, .ContextMenu, .Label, .ListView, .MenuItem, .SelectionMode, .Tab, .TabPane, .Tooltip, javafx.scene.input.DragEvent, .Dragboard, .KeyEvent, .MouseEvent, .TransferMode, javafx.scene.layout.AnchorPane, .HBox, .Priority, .Region, .VBox, org.jabref.gui.StateManager, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.icon.IconTheme, org.jabref.gui.preferences.AbstractPreferenceTabView, org.jabref.gui.preview.PreviewViewer, org.jabref.gui.theme.StyleClasses, org.jabref.gui.util.BindingsHelper, .FileDialogConfiguration, .ViewModelListCellFactory, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.preview.BstPreviewLayout, .PreviewLayout, org.jabref.logic.util.StandardFileType, .TestEntry, org.jabref.model.database.BibDatabaseContext, com.airhacks.afterburner.injection.Injector, com.tobiasdiez.easybind.EasyBind, org.controlsfx.control.textfield.CustomTextField, org.fxmisc.flowless.VirtualizedScrollPane, org.fxmisc.richtext.CodeArea, .LineNumberFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final JournalAbbreviationRepository
private ListView<PreviewLayout>
private ListView<PreviewLayout>
private final ContextMenu
private CodeArea
private long
private String
private Tab
private Label
private Button
private CustomTextField
private Button
private Button
private final StateManager
private Button
private Button
Inherited from org.jabref.gui.preferences.AbstractPreferenceTabView:
dialogServicepreferencestaskExecutorviewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Node
private Node
private ContextMenu
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 String
getTitle()

Overrides default org.jabref.gui.preferences.PreferencesTab.getTitle.

The heading the dialog shows above the tab's content.

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 ListView<PreviewLayout>
private void
private void
private Button
public void
private Label
private void
public void
public void
private Region
spacer(double height)

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

Field Detail

abbreviationRepositoryback to summary
private final JournalAbbreviationRepository abbreviationRepository
availableListViewback to summary
private ListView<PreviewLayout> availableListView
chosenListViewback to summary
private ListView<PreviewLayout> chosenListView
contextMenuback to summary
private final ContextMenu contextMenu
editAreaback to summary
private CodeArea editArea
lastKeyPressTimeback to summary
private long lastKeyPressTime
listSearchTermback to summary
private String listSearchTerm
previewTabback to summary
private Tab previewTab
readOnlyLabelback to summary
private Label readOnlyLabel
resetDefaultButtonback to summary
private Button resetDefaultButton
sortDownButtonback to summary
private Button sortDownButton
sortUpButtonback to summary
private Button sortUpButton
stateManagerback to summary
private final StateManager stateManager
toLeftButtonback to summary
private Button toLeftButton
toRightButtonback to summary
private Button toRightButton

Constructor Detail

PreviewTabback to summary
public PreviewTab()

Method Detail

buildDualListRegionback to summary
private Node buildDualListRegion()
buildEditorRegionback to summary
private Node buildEditorRegion()
createContextMenuback to summary
private ContextMenu createContextMenu(PreviewLayout layout)
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.

Annotations
@Override
getTitleback to summary
public String getTitle()

Overrides default org.jabref.gui.preferences.PreferencesTab.getTitle.

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

The heading the dialog shows above the tab's content. Defaults to the tab's name; override where the heading is more specific (e.g. tab "Entry types", heading "Custom entry types").

Annotations
@Override
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

layoutListViewback to summary
private ListView<PreviewLayout> layoutListView()
mouseClickedAvailableback to summary
private void mouseClickedAvailable(MouseEvent event)
mouseClickedChosenback to summary
private void mouseClickedChosen(MouseEvent event)
moveButtonback to summary
private Button moveButton(IconTheme.JabRefIcons icon, Runnable action)
resetDefaultButtonActionback to summary
public void resetDefaultButtonAction()
sectionLabelback to summary
private Label sectionLabel(String text)
selectBstFileback to summary
private void selectBstFile()
sortDownButtonActionback to summary
public void sortDownButtonAction()
sortUpButtonActionback to summary
public void sortUpButtonAction()
spacerback to summary
private Region spacer(double height)
toLeftButtonActionback to summary
public void toLeftButtonAction()
toRightButtonActionback to summary
public void toRightButtonAction()
wireControlsback to summary
private void wireControls()
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