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

Public Member Functions

 AutowiredFXMLStage (URL fxml, Window owner)
 
 AutowiredFXMLStage (URL fxml, Window owner, StageStyle style)
 
void loadFXML () throws IOException
 
void setFXMLLoader (FXMLLoader loader)
 
- Public Member Functions inherited from ui.FXMLStage
void show ()
 

Detailed Description

Custom extension of a JavaFX stage that allows injection of custom controllers. These controllers are created by Spring, allowing me to finally have control over their initialization process.

Definition at line 18 of file AutowiredFXMLStage.java.

Constructor & Destructor Documentation

ui.AutowiredFXMLStage.AutowiredFXMLStage ( URL  fxml,
Window  owner 
)
Parameters
fxmlA URL pointing to an FXML document. This document represents the layout of the component
ownerThe window that owns this stage

Definition at line 37 of file AutowiredFXMLStage.java.

37  {
38  this(fxml, owner, StageStyle.DECORATED);
39  }
ui.AutowiredFXMLStage.AutowiredFXMLStage ( URL  fxml,
Window  owner,
StageStyle  style 
)
Parameters
fxmlA URL pointing to an FXML document. This document represents the layout of the component
ownerThe window that owns this stage
styleThe styling for the stage

Definition at line 47 of file AutowiredFXMLStage.java.

47  {
48  super(style);
49  this.fxml = fxml;
50  initOwner(owner);
51  initModality(Modality.NONE);
52  }

Member Function Documentation

void ui.AutowiredFXMLStage.loadFXML ( ) throws IOException

Load the FXML component

Implements ui.FXMLStage.

Definition at line 57 of file AutowiredFXMLStage.java.

57  {
58  resetLoader();
59  this.fxmlLoader.setLocation(this.fxml);
60  setScene(new Scene(this.fxmlLoader.load()));
61  }
< FXMLType > FXMLType load()
void setLocation(URL fxml)
void ui.AutowiredFXMLStage.setFXMLLoader ( FXMLLoader  loader)
Parameters
loaderThe FXML loader to use in this stage

Implements ui.FXMLStage.

Definition at line 66 of file AutowiredFXMLStage.java.

66  {
67  this.fxmlLoader = loader;
68  }

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