BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
ui.JavaFXGraphicalUserInterfaceLauncher Class Reference
Inheritance diagram for ui.JavaFXGraphicalUserInterfaceLauncher:
Inheritance graph
[legend]
Collaboration diagram for ui.JavaFXGraphicalUserInterfaceLauncher:
Collaboration graph
[legend]

Public Member Functions

 JavaFXGraphicalUserInterfaceLauncher ()
 
 JavaFXGraphicalUserInterfaceLauncher (ApplicationContext context)
 
void start (Stage stage) throws Exception
 
void launchWithDefaultStage (String[] commandLineArguments)
 

Detailed Description

Main entry point for the UI

Definition at line 12 of file JavaFXGraphicalUserInterfaceLauncher.java.

Constructor & Destructor Documentation

ui.JavaFXGraphicalUserInterfaceLauncher.JavaFXGraphicalUserInterfaceLauncher ( )

Creates the launcher with the default Application context.

Definition at line 19 of file JavaFXGraphicalUserInterfaceLauncher.java.

19  {
20  context = new AnnotationConfigApplicationContext(
21  ApplicationConfiguration.class
22  );
23  }

Member Function Documentation

void ui.JavaFXGraphicalUserInterfaceLauncher.launchWithDefaultStage ( String[]  commandLineArguments)
Parameters
commandLineArgumentsThe command line arguments with which the application (main.Main#main(String[])) was

Implements ui.UserInterfaceLauncher.

Definition at line 54 of file JavaFXGraphicalUserInterfaceLauncher.java.

54  {
55  launch(this.getClass(), commandLineArguments);
56  }
void ui.JavaFXGraphicalUserInterfaceLauncher.start ( Stage  stage) throws Exception

Starts the application

Parameters
stageThe stage in which to start the application
Exceptions
ExceptionIf the application could not be started

Implements ui.UserInterfaceLauncher.

Definition at line 36 of file JavaFXGraphicalUserInterfaceLauncher.java.

36  {
37 
38  UserInterfaceConfiguration userInterface = context.getBean(
39  UserInterfaceConfiguration.class
40  );
41 
42  userInterface.setPrimaryStage(stage);
43  userInterface.application().loadFXML();
44  userInterface.application().show();
45  }

The documentation for this class was generated from the following file:
Git Repo