public class FXMLView extends java.lang.Object implements View
View
specifically intended to improve support
for FXML-based views. Simply use this class by passing in a reference to an
FXML file, and it will take care of instantiating the FXML view, as well as
any referenced controller. In addition to this, the controller itself will
receive the benefit of the Particle field injection support, populating
appropriately fields annotated with @Inject
.View
Constructor and Description |
---|
FXMLView(java.net.URL fxmlFile)
Creates a new FXMLView instance with the given fxmlFile as the view that
will be loaded.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.Node |
getContent()
Returns the root node of this view - this will be displayed in the center
area of the Particle window.
|
public FXMLView(java.net.URL fxmlFile)
public javafx.scene.Node getContent()
getContent
in interface View