Verified Owner
Top Fields Constructors Methods
org.jabref.gui.openoffice

public Class StyleSelectDialogView

extends BaseDialog<OOStyle>
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicBoolean, javafx.application.Platform, javafx.collections.ListChangeListener, javafx.fxml.FXML, javafx.scene.control.Button, .ButtonType, .ContextMenu, .DialogEvent, .Label, .MenuItem, .RadioButton, .Tab, .TabPane, .TableColumn, .TableView, .ToggleGroup, javafx.scene.input.MouseButton, javafx.scene.layout.VBox, org.jabref.gui.DialogService, org.jabref.gui.icon.IconTheme, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.preview.PreviewViewer, org.jabref.gui.util.BaseDialog, .ValueTableCellFactory, .ViewModelTableRowFactory, org.jabref.logic.citationstyle.CSLStyleLoader, .CitationStyle, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.openoffice.OpenOfficePreferences, org.jabref.logic.openoffice.style.BstCitationFormat, .BstStyle, .BstStyleLoader, .JStyle, .JStyleLoader, .OOStyle, org.jabref.logic.preview.BstPreviewLayout, .CitationStylePreviewLayout, .TextBasedPreviewLayout, org.jabref.logic.util.TaskExecutor, .TestEntry, org.jabref.logic.util.strings.StringUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.model.entry.types.StandardEntryType, com.airhacks.afterburner.views.ViewLoader, com.tobiasdiez.easybind.EasyBind, jakarta.inject.Inject, org.controlsfx.control.textfield.CustomTextField

Field Summary

Modifier and TypeField and Description
private Button
private Button
private Button
private RadioButton
private BibEntryTypesManager
private TableColumn<BstStyleSelectViewModel, Boolean>
private TableColumn<BstStyleSelectViewModel, String>
private TableColumn<BstStyleSelectViewModel, String>
private Label
private VBox
private final BstStyleLoader
private TableView<BstStyleSelectViewModel>
private Tab
private TableColumn<CSLStyleSelectViewModel, Boolean>
private TableColumn<CSLStyleSelectViewModel, String>
private TableColumn<CSLStyleSelectViewModel, String>
private VBox
private final CSLStyleLoader
private TableView<CSLStyleSelectViewModel>
private Tab
private Label
private DialogService
private final MenuItem
private final AtomicBoolean
private final JournalAbbreviationRepository
private TableColumn<JStyleSelectViewModel, Boolean>
private TableColumn<JStyleSelectViewModel, String>
private TableColumn<JStyleSelectViewModel, String>
private final JStyleLoader
private TableColumn<JStyleSelectViewModel, String>
private VBox
private TableView<JStyleSelectViewModel>
private Tab
private RadioButton
private GuiPreferences
private PreviewViewer
private PreviewViewer
private final MenuItem
private CustomTextField
private RadioButton
private TabPane
private TaskExecutor
private StyleSelectDialogViewModel
private static final String
WARNING_STYLE_CLASS

Turns bstPandocWarning into a warning; without it the label reads as a plain hint.

Constructor Summary

AccessConstructor and Description
public
StyleSelectDialogView(CSLStyleLoader cslStyleLoader, JStyleLoader jStyleLoader, BstStyleLoader bstStyleLoader, JournalAbbreviationRepository journalAbbreviationRepository)

ViewModel for the CitationStyle entries in the TableView

Method Summary

Modifier and TypeMethod and Description
private void
private void
private void
private ContextMenu
private void
private PreviewViewer
private void
onDialogShown(DialogEvent event)

When Select Style dialog is first opened, there is a slight delay in population of CSL styles table.

private void
private void
private void
private void
private void
private void
Inherited from org.jabref.gui.util.BaseDialog:
bringToFrontcloseOnKeyBindingMatchfitWindowToContent

Field Detail

addBstStyleButtonback to summary
private Button addBstStyleButton
Annotations
@FXML
addCslButtonback to summary
private Button addCslButton
Annotations
@FXML
addJStyleButtonback to summary
private Button addJStyleButton
Annotations
@FXML
authorYearFormatButtonback to summary
private RadioButton authorYearFormatButton
Annotations
@FXML
bibEntryTypesManagerback to summary
private BibEntryTypesManager bibEntryTypesManager
Annotations
@Inject
bstDeleteColumnback to summary
private TableColumn<BstStyleSelectViewModel, Boolean> bstDeleteColumn
Annotations
@FXML
bstFileColumnback to summary
private TableColumn<BstStyleSelectViewModel, String> bstFileColumn
Annotations
@FXML
bstNameColumnback to summary
private TableColumn<BstStyleSelectViewModel, String> bstNameColumn
Annotations
@FXML
bstPandocWarningback to summary
private Label bstPandocWarning
Annotations
@FXML
bstPreviewBoxback to summary
private VBox bstPreviewBox
Annotations
@FXML
bstStyleLoaderback to summary
private final BstStyleLoader bstStyleLoader
bstStylesTableback to summary
private TableView<BstStyleSelectViewModel> bstStylesTable
Annotations
@FXML
bstStyleTabback to summary
private Tab bstStyleTab
Annotations
@FXML
cslDeleteColumnback to summary
private TableColumn<CSLStyleSelectViewModel, Boolean> cslDeleteColumn
Annotations
@FXML
cslNameColumnback to summary
private TableColumn<CSLStyleSelectViewModel, String> cslNameColumn
Annotations
@FXML
cslPathColumnback to summary
private TableColumn<CSLStyleSelectViewModel, String> cslPathColumn
Annotations
@FXML
cslPreviewBoxback to summary
private VBox cslPreviewBox
Annotations
@FXML
cslStyleLoaderback to summary
private final CSLStyleLoader cslStyleLoader
cslStylesTableback to summary
private TableView<CSLStyleSelectViewModel> cslStylesTable
Annotations
@FXML
cslStyleTabback to summary
private Tab cslStyleTab
Annotations
@FXML
currentStyleNameLabelback to summary
private Label currentStyleNameLabel
Annotations
@FXML
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
editback to summary
private final MenuItem edit
initialScrollPerformedback to summary
private final AtomicBoolean initialScrollPerformed
journalAbbreviationRepositoryback to summary
private final JournalAbbreviationRepository journalAbbreviationRepository
jStyleDeleteColumnback to summary
private TableColumn<JStyleSelectViewModel, Boolean> jStyleDeleteColumn
Annotations
@FXML
jStyleFileColumnback to summary
private TableColumn<JStyleSelectViewModel, String> jStyleFileColumn
Annotations
@FXML
jStyleJournalColumnback to summary
private TableColumn<JStyleSelectViewModel, String> jStyleJournalColumn
Annotations
@FXML
jStyleLoaderback to summary
private final JStyleLoader jStyleLoader
jStyleNameColumnback to summary
private TableColumn<JStyleSelectViewModel, String> jStyleNameColumn
Annotations
@FXML
jStylePreviewBoxback to summary
private VBox jStylePreviewBox
Annotations
@FXML
jStylesTableback to summary
private TableView<JStyleSelectViewModel> jStylesTable
Annotations
@FXML
jStyleTabback to summary
private Tab jStyleTab
Annotations
@FXML
numericFormatButtonback to summary
private RadioButton numericFormatButton
Annotations
@FXML
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
previewArticleback to summary
private PreviewViewer previewArticle
previewBookback to summary
private PreviewViewer previewBook
reloadback to summary
private final MenuItem reload
styleDefinedFormatButtonback to summary
private RadioButton styleDefinedFormatButton
Annotations
@FXML
tabPaneback to summary
private TabPane tabPane
Annotations
@FXML
taskExecutorback to summary
private TaskExecutor taskExecutor
Annotations
@Inject
viewModelback to summary
private StyleSelectDialogViewModel viewModel
WARNING_STYLE_CLASSback to summary
private static final String WARNING_STYLE_CLASS

Turns bstPandocWarning into a warning; without it the label reads as a plain hint.

Constructor Detail

StyleSelectDialogViewback to summary
public StyleSelectDialogView(CSLStyleLoader cslStyleLoader, JStyleLoader jStyleLoader, BstStyleLoader bstStyleLoader, JournalAbbreviationRepository journalAbbreviationRepository)

ViewModel for the CitationStyle entries in the TableView

Method Detail

addBstStyleFileback to summary
private void addBstStyleFile()
Annotations
@FXML
addCslStyleFileback to summary
private void addCslStyleFile()
Annotations
@FXML
addJStyleFileback to summary
private void addJStyleFile()
Annotations
@FXML
createContextMenuback to summary
private ContextMenu createContextMenu()
initializeback to summary
private void initialize()
Annotations
@FXML
initializePreviewViewerback to summary
private PreviewViewer initializePreviewViewer(BibEntry entry)
onDialogShownback to summary
private void onDialogShown(DialogEvent event)

When Select Style dialog is first opened, there is a slight delay in population of CSL styles table. This function scrolls to the last selected style, while taking care of the delay.

scrollToCurrentStyleback to summary
private void scrollToCurrentStyle()
setupBstStylesTabback to summary
private void setupBstStylesTab()
setupCslStylesTabback to summary
private void setupCslStylesTab()
setupJStylesTabback to summary
private void setupJStylesTab()
updateCslStylesTableback to summary
private void updateCslStylesTable()
updateCurrentStyleLabelback to summary
private void updateCurrentStyleLabel()