BakeoutController-Basic  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)
 
FXMLLoader fxmlLoader ()
 
DeviceSetupController deviceSetupController ()
 
SequenceController sequenceController ()
 
DeviceListController deviceListController ()
 
ResultController resultController ()
 
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 28 of file UserInterfaceConfiguration.java.

Member Function Documentation

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

Definition at line 85 of file UserInterfaceConfiguration.java.

85  {
86  return new AutowiredFXMLStage(
87  getClass().getResource("/Application.fxml"),
88  primaryStage
89  );
90  }
DeviceSetupController ui.UserInterfaceConfiguration.deviceSetupController ( )
Returns
The controller for the device setup panel

Definition at line 55 of file UserInterfaceConfiguration.java.

55  {
56  return new DeviceSetupController();
57  }
FXMLLoader ui.UserInterfaceConfiguration.fxmlLoader ( )
Returns
An FXML loader awqre of this application context

Definition at line 46 of file UserInterfaceConfiguration.java.

46  {
47  return new ContextAwareFXMLLoader();
48  }
SequenceController ui.UserInterfaceConfiguration.sequenceController ( )
Returns
The controller for the sequence panel

Definition at line 64 of file UserInterfaceConfiguration.java.

64  {
65  return new SequenceController();
66  }
void ui.UserInterfaceConfiguration.setPrimaryStage ( Stage  primaryStage)
Parameters
primaryStageThe stage to use as the primary stage

Definition at line 37 of file UserInterfaceConfiguration.java.

37  {
38  this.primaryStage = primaryStage;
39  }

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