Class OpenPatricianApplication

    • Field Detail

      • width

        private int width
      • height

        private int height
      • fullscreen

        private boolean fullscreen
      • primaryStage

        private javafx.stage.Stage primaryStage
      • keyEventHandlerAggregate

        private final AggregateEventHandler<javafx.scene.input.KeyEvent> keyEventHandlerAggregate
      • context

        private org.springframework.context.ApplicationContext context
    • Constructor Detail

      • OpenPatricianApplication

        public OpenPatricianApplication()
    • Method Detail

      • addKeyEventHandler

        private void addKeyEventHandler​(javafx.event.EventHandler<javafx.scene.input.KeyEvent> eventHandler)
        Add a key event handler to the application.
        Parameters:
        eventHandler - to be added.
      • main

        public static void main​(java.lang.String[] args)
      • init

        public void init()
        Overrides:
        init in class javafx.application.Application
      • start

        public void start​(javafx.stage.Stage primaryStage)
        Specified by:
        start in class javafx.application.Application
      • setCursor

        private void setCursor​(javafx.scene.Scene scene)
      • updateFullscreenMode

        public void updateFullscreenMode()
        Toggle between full screen and non full screen mode.
      • getSceneWidth

        public double getSceneWidth()
        Description copied from interface: SceneChangeable
        Retrieve the width of the current scene. This is required to update the width dimension of the new scene. This is due to this bug: https://javafx-jira.kenai.com/browse/RT-30392
        Specified by:
        getSceneWidth in interface SceneChangeable
        Returns:
        scene width
      • getSceneHeight

        public double getSceneHeight()
        Description copied from interface: SceneChangeable
        Retrieve the height of the current scene. This is required to update the height dimension of the new scene. This is due to this bug: https://javafx-jira.kenai.com/browse/RT-30392
        Specified by:
        getSceneHeight in interface SceneChangeable
        Returns:
        scene height
      • stop

        public void stop()
                  throws java.lang.Exception
        Overrides:
        stop in class javafx.application.Application
        Throws:
        java.lang.Exception
      • stopUIApplicationContext

        private void stopUIApplicationContext()
        Closing the application context for the user interface.