- All Known Implementing Classes:
AbstractFxController,AbstractValidateableFxController,I18NEditor
public interface FxController
The controller interface all Tentackle FX-controllers must implement.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures the controller as the final step in initialization.Gets the binder of this controller.Gets the top-level container.
This is usually the view.Gets all fields in this controller annotated with @FXML.
The fields are made accessible, if private.Gets all methods in this controller annotated with @FXML.
The methods are made accessible, if private.javafx.stage.StagegetStage()Gets the stage of which the controller's view is the root of the scene.javafx.scene.ParentgetView()Gets the view managed by this controller.voidsetView(javafx.scene.Parent view) Sets the view managed by this controller.voidValidate @FXML-annotated fields.
The fxml-loader does not throw an exception if a fx:id does not correspond to a field annotated with @FXML.
-
Method Details
-
setView
void setView(javafx.scene.Parent view) Sets the view managed by this controller.- Parameters:
view- the view
-
getView
javafx.scene.Parent getView()Gets the view managed by this controller.- Returns:
- the view
-
getStage
javafx.stage.Stage getStage()Gets the stage of which the controller's view is the root of the scene.- Returns:
- the stage, null if not a root scene
-
getContainer
FxContainer getContainer()Gets the top-level container.
This is usually the view.- Returns:
- the container, null if none
-
validateInjections
void validateInjections()Validate @FXML-annotated fields.
The fxml-loader does not throw an exception if a fx:id does not correspond to a field annotated with @FXML. This method verifies that all such fields provide a non-null value. -
getBinder
FxComponentBinder getBinder()Gets the binder of this controller.- Returns:
- the binder, never null.
-
configure
void configure()Configures the controller as the final step in initialization. -
getFXMLFields
Gets all fields in this controller annotated with @FXML.
The fields are made accessible, if private.- Returns:
- the fields
-
getFXMLMethods
Gets all methods in this controller annotated with @FXML.
The methods are made accessible, if private.- Returns:
- the methods
-