Verified Owner
Top Constructors Methods
org.jabref.gui.util

public Class BaseDialog<T>

extends Dialog<T>
Class Inheritance
Known Direct Subclasses
org.jabref.gui.util.ZipFileChooser, org.jabref.gui.importer.ImportCustomEntryTypesDialog, org.jabref.gui.importer.ImportEntriesDialog, org.jabref.gui.preferences.PreferencesDialogView, org.jabref.gui.preferences.PreferencesFilterDialog, org.jabref.gui.preferences.externalfiletypes.EditExternalFileTypeEntryDialog, org.jabref.gui.preferences.protectedterms.NewProtectedTermsFileDialog, org.jabref.gui.ai.chat.AiChatStatusWindow, org.jabref.gui.ai.chat.AiGroupChatWindow, org.jabref.gui.ai.summary.AiSummaryParametersDialog, org.jabref.gui.auximport.FromAuxDialog, org.jabref.gui.cleanup.CleanupDialog, org.jabref.gui.collab.DatabaseChangesResolverDialog, org.jabref.gui.consistency.ConsistencyCheckDialog, org.jabref.gui.consistency.ConsistencySymbolsDialog, org.jabref.gui.copyfiles.CopyFilesDialogView, org.jabref.gui.documentviewer.DocumentViewerView, org.jabref.gui.duplicationFinder.DuplicateResolverDialog, org.jabref.gui.edit.ManageKeywordsDialog, org.jabref.gui.edit.ReplaceStringView, org.jabref.gui.edit.automaticfieldeditor.AutomaticFieldEditorDialog, org.jabref.gui.entryeditor.JumpToFieldDialog, org.jabref.gui.errorconsole.ErrorConsoleView, org.jabref.gui.exporter.CreateModifyExporterDialogView, org.jabref.gui.git.GitCommitDialogView, org.jabref.gui.git.GitDiffDialogView, org.jabref.gui.git.GitShareToGitHubDialogView, org.jabref.gui.groups.GroupDialogView, org.jabref.gui.help.AboutDialogView, org.jabref.gui.help.NewVersionDialog, org.jabref.gui.integrity.IntegrityCheckDialog, org.jabref.gui.libraryproperties.LibraryPropertiesView, org.jabref.gui.linkedfile.LinkedFileEditDialog, org.jabref.gui.mergeentries.multiwaymerge.MultiMergeEntriesView, org.jabref.gui.mergeentries.threewaymerge.MergeEntriesDialog, org.jabref.gui.newentry.NewEntryView, org.jabref.gui.openoffice.CiteSpecialDialogView, org.jabref.gui.openoffice.ManageCitationsDialogView, org.jabref.gui.openoffice.ModifyBibliographyPropertiesDialogView, org.jabref.gui.openoffice.StyleSelectDialogView, org.jabref.gui.relatedwork.RelatedWorkDialogView, org.jabref.gui.relatedwork.RelatedWorkResultDialogView, org.jabref.gui.search.GlobalSearchResultDialog, org.jabref.gui.shared.SharedDatabaseLoginDialogView, org.jabref.gui.slr.ManageStudyDefinitionView, org.jabref.gui.texparser.ParseLatexDialogView, org.jabref.gui.texparser.ParseLatexResultView
Imports
java.util.Optional, javafx.application.Platform, javafx.scene.Node, .Parent, .Scene, javafx.scene.control.Button, .ButtonType, .Dialog, .DialogPane, javafx.scene.image.Image, javafx.scene.input.KeyCode, .KeyEvent, javafx.scene.layout.Region, javafx.stage.Stage, .Window, .WindowEvent, org.jabref.gui.icon.IconTheme, org.jabref.gui.keyboard.KeyBinding, .KeyBindingRepository, org.jabref.gui.walkthrough.WalkthroughPane, com.airhacks.afterburner.injection.Injector

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
bringToFront(Dialog<?> dialog)

private static void
public static boolean
public static void
fitWindowToContent(DialogPane pane)

Fits the dialog window around its content.

private Optional<Button>
private ButtonType
private Stage
private void
private void
private void
setUpDialogPane(DialogPane dialogPane)

Key bindings and the pane a walkthrough draws into both belong to the dialog pane, so a dialog that swaps in a new one gets them again.

private void
private static void
sizeDialog(DialogPane pane)

Reapplies CSS and relayout the dialog again.

Inherited from javafx.scene.control.Dialog:
addEventFilteraddEventHandlerbuildEventDispatchChainclosecontentTextPropertydialogPanePropertygetContentTextgetDialogPanegetGraphicgetHeaderTextgetHeightgetModalitygetOnCloseRequestgetOnHiddengetOnHidinggetOnShowinggetOnShowngetOwnergetResultgetResultConvertergetTitlegetWidthgetXgetYgraphicPropertyheaderTextPropertyheightPropertyhideinitModalityinitOwnerinitStyleisResizableisShowingonCloseRequestPropertyonHiddenPropertyonHidingPropertyonShowingPropertyonShownPropertyremoveEventFilterremoveEventHandlerresizablePropertyresultConverterPropertyresultPropertysetContentTextsetDialogPanesetGraphicsetHeaderTextsetHeightsetOnCloseRequestsetOnHiddensetOnHidingsetOnShowingsetOnShownsetResizablesetResultsetResultConvertersetTitlesetWidthsetXsetYshowshowAndWaitshowingPropertytitlePropertywidthPropertyxPropertyyProperty

Constructor Detail

BaseDialogback to summary
protected BaseDialog()

Method Detail

bringToFrontback to summary
public static void bringToFront(Dialog<?> dialog)
clearSizeCacheback to summary
private static void clearSizeCache(Parent parent)
closeOnKeyBindingMatchback to summary
public static boolean closeOnKeyBindingMatch(KeyEvent event, Dialog<?> dialog)
fitWindowToContentback to summary
public static void fitWindowToContent(DialogPane pane)

Fits the dialog window around its content.

getDefaultButtonback to summary
private Optional<Button> getDefaultButton()
getDefaultButtonTypeback to summary
private ButtonType getDefaultButtonType()
getDialogWindowback to summary
private Stage getDialogWindow()
handleKeyEventback to summary
private void handleKeyEvent(KeyEvent event)
setDialogIconback to summary
private void setDialogIcon(Image image)
setUpDialogPaneback to summary
private void setUpDialogPane(DialogPane dialogPane)

Key bindings and the pane a walkthrough draws into both belong to the dialog pane, so a dialog that swaps in a new one gets them again.

setupKeyBindingsback to summary
private void setupKeyBindings(DialogPane dialogPane)
sizeDialogback to summary
private static void sizeDialog(DialogPane pane)

Reapplies CSS and relayout the dialog again.