Top Description Fields Constructors Methods
org.jabref.gui

public Class JabRefGUI

extends Application
Class Inheritance
Imports
java.util.List, .Optional, javax.swing.undo.UndoManager, javafx.application.Application, .Platform, javafx.scene.Scene, javafx.scene.input.KeyEvent, javafx.stage.Screen, .Stage, .WindowEvent, org.jabref.gui.frame.JabRefFrame, org.jabref.gui.help.VersionWorker, org.jabref.gui.icon.IconTheme, org.jabref.gui.keyboard.KeyBindingRepository, .TextInputKeyBindings, org.jabref.gui.openoffice.OOBibBaseConnect, org.jabref.gui.remote.CLIMessageHandler, org.jabref.gui.theme.ThemeManager, org.jabref.gui.undo.CountingUndoManager, org.jabref.gui.util.TaskExecutor, .UiTaskExecutor, org.jabref.logic.UiCommand, org.jabref.logic.l10n.Localization, org.jabref.logic.net.ProxyRegisterer, org.jabref.logic.remote.RemotePreferences, org.jabref.logic.remote.server.RemoteListenerServerManager, org.jabref.logic.util.BuildInfo, .HeadlessExecutorService, .WebViewStore, org.jabref.model.entry.BibEntryTypesManager, org.jabref.model.strings.StringUtil, org.jabref.model.util.DirectoryMonitor, .FileUpdateMonitor, org.jabref.preferences.GuiPreferences, .JabRefPreferences, com.airhacks.afterburner.injection.Injector, com.tobiasdiez.easybind.EasyBind, kong.unirest.core.Unirest, org.slf4j.Logger, .LoggerFactory

Represents the outer stage and the scene of the JabRef window.

Field Summary

Modifier and TypeField and Description
private static ClipBoardManager
private boolean
private static CountingUndoManager
private static DialogService
private static FileUpdateMonitor
private static final Logger
private static JabRefFrame
private Stage
private static JabRefPreferences
private static RemoteListenerServerManager
private static StateManager
private static TaskExecutor
private static ThemeManager
private static List<UiCommand>
Inherited from javafx.application.Application:
STYLESHEET_CASPIANSTYLESHEET_MODENA

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
debugLogWindowState(Stage
JabRefs stage
mainStage
)

outprints the Data from the Screen (only in debug mode)

public void
private boolean

Returns:

outbounds
isWindowPositionOutOfBounds
()

Tests if the window coordinates are out of the mainscreen

public void
public void
public void
private void
private void
public static void
setup(List<UiCommand> uiCommands, JabRefPreferences preferencesService, FileUpdateMonitor fileUpdateMonitor)

private void
public static void
public void
start(Stage
the primary stage for this application, onto which the application scene can be set. Applications may create other stages, if needed, but they will not be primary stages.
stage
)

Implements abstract javafx.application.Application.start.

The main entry point for all JavaFX applications.

public void
public void
stop()

Overrides javafx.application.Application.stop.

This method is called when the application should stop, and provides a convenient place to prepare for application exit and destroy resources.

public void
Inherited from javafx.application.Application:
getHostServicesgetParametersgetUserAgentStylesheetinitlaunchlaunchnotifyPreloadersetUserAgentStylesheet

Field Detail

clipBoardManagerback to summary
private static ClipBoardManager clipBoardManager
correctedWindowPosback to summary
private boolean correctedWindowPos
countingUndoManagerback to summary
private static CountingUndoManager countingUndoManager
dialogServiceback to summary
private static DialogService dialogService
fileUpdateMonitorback to summary
private static FileUpdateMonitor fileUpdateMonitor
LOGGERback to summary
private static final Logger LOGGER
mainFrameback to summary
private static JabRefFrame mainFrame
mainStageback to summary
private Stage mainStage
preferencesServiceback to summary
private static JabRefPreferences preferencesService
remoteListenerServerManagerback to summary
private static RemoteListenerServerManager remoteListenerServerManager
stateManagerback to summary
private static StateManager stateManager
taskExecutorback to summary
private static TaskExecutor taskExecutor
themeManagerback to summary
private static ThemeManager themeManager
uiCommandsback to summary
private static List<UiCommand> uiCommands

Constructor Detail

JabRefGUIback to summary
public JabRefGUI()

Method Detail

debugLogWindowStateback to summary
private void debugLogWindowState(Stage mainStage)

outprints the Data from the Screen (only in debug mode)

Parameters
mainStage:Stage

JabRefs stage

initializeback to summary
public void initialize()
isWindowPositionOutOfBoundsback to summary
private boolean isWindowPositionOutOfBounds()

Tests if the window coordinates are out of the mainscreen

Returns:boolean

outbounds

onCloseRequestback to summary
public void onCloseRequest(WindowEvent event)
onHidingback to summary
public void onHiding(WindowEvent event)
onShowingback to summary
public void onShowing(WindowEvent event)
openWindowback to summary
private void openWindow()
saveWindowStateback to summary
private void saveWindowState()
setupback to summary
public static void setup(List<UiCommand> uiCommands, JabRefPreferences preferencesService, FileUpdateMonitor fileUpdateMonitor)
setupProxyback to summary
private void setupProxy()
shutdownThreadPoolsback to summary
public static void shutdownThreadPools()
startback to summary
public void start(Stage stage)

Implements abstract javafx.application.Application.start.

Doc from javafx.application.Application.start.

The main entry point for all JavaFX applications. The start method is called after the init method has returned, and after the system is ready for the application to begin running.

Note

This method is called on the JavaFX Application Thread.

Parameters
stage:Stage

the primary stage for this application, onto which the application scene can be set. Applications may create other stages, if needed, but they will not be primary stages.

Annotations
@Override
startBackgroundTasksback to summary
public void startBackgroundTasks()
stopback to summary
public void stop()

Overrides javafx.application.Application.stop.

Doc from javafx.application.Application.stop.

This method is called when the application should stop, and provides a convenient place to prepare for application exit and destroy resources.

The implementation of this method provided by the Application class does nothing.

Note

This method is called on the JavaFX Application Thread.

Annotations
@Override
stopBackgroundTasksback to summary
public void stopBackgroundTasks()