BakeoutController  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
ui.UserInterfaceConfiguration Class Reference

Public Member Functions

void setPrimaryStage (Stage primaryStage)
 
void showScreen (Parent screen)
 
FXMLLoader fxmlLoader ()
 
DevicesController devicesController ()
 
SequenceController sequenceController ()
 
NewDeviceController newDeviceController ()
 
NewStepController newStepController ()
 
FXMLStage application ()
 

Detailed Description

Contains the configuration for the User Interface. This is a structure of beans that are used to load the user interface. Construction details are specified in this configuration

IntelliJ will claim that some methods, especially the beans, are unused. This is false. These methods need to exist because Spring will run all the methods annotated with Bean, and add their return values to its inversion of control container. Calls to org.springframework.context.ApplicationContext#getBean(Class) will then use these instantiated objects. Such a call is also implicitly present in any field annotated with org.springframework.beans.factory.annotation.Autowired. In short, be sure that methods can be deleted from here before you do so. Your IDE may spread lies

Definition at line 30 of file UserInterfaceConfiguration.java.

Member Function Documentation

FXMLStage ui.UserInterfaceConfiguration.application ( )
Returns
A loaded user interface

Definition at line 90 of file UserInterfaceConfiguration.java.

90  {
91  return new AutowiredFXMLStage(
92  getClass().getResource("/Application.fxml"),
93  primaryStage
94  );
95  }
FXMLLoader ui.UserInterfaceConfiguration.fxmlLoader ( )
Returns
An FXML loader awqre of this application context

Definition at line 57 of file UserInterfaceConfiguration.java.

57  {
58  return new ContextAwareFXMLLoader();
59  }
void ui.UserInterfaceConfiguration.setPrimaryStage ( Stage  primaryStage)
Parameters
primaryStageThe stage to use as the primary stage

Definition at line 39 of file UserInterfaceConfiguration.java.

39  {
40  this.primaryStage = primaryStage;
41  }
void ui.UserInterfaceConfiguration.showScreen ( Parent  screen)

Show a particular modal dialog

Parameters
screenThe screen to show

Definition at line 47 of file UserInterfaceConfiguration.java.

47  {
48  primaryStage.setScene(new Scene(screen, 500, 400));
49  primaryStage.show();
50  }

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