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

Public Member Functions

 UserInterfaceLauncher ()
 
 UserInterfaceLauncher (ApplicationContext context)
 
void start (Stage stage) throws Exception
 

Detailed Description

Main entry point for the UI

Definition at line 12 of file UserInterfaceLauncher.java.

Constructor & Destructor Documentation

ui.UserInterfaceLauncher.UserInterfaceLauncher ( )

Creates the launcher with the default Application context.

Definition at line 18 of file UserInterfaceLauncher.java.

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

Member Function Documentation

void ui.UserInterfaceLauncher.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

Definition at line 35 of file UserInterfaceLauncher.java.

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

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