-
- All Known Implementing Classes:
AbstractFxController
public interface FxControllerThe controller interface all Tentackle FX-controllers must implement.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure()Configures the controller as the final step in initialization.FxComponentBindergetBinder()Gets the binder of this controller.FxContainergetContainer()Gets the top-level container.
This is usually the view.java.util.List<java.lang.reflect.Field>getFXMLFields()Gets all fields in this controller annotated with @FXML.
The fields are made accessible, if private.java.util.List<java.lang.reflect.Method>getFXMLMethods()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.voidvalidateInjections()Validate @FXML-annotated fields.
The fxml-loader does not throw an exception if an fx:id does not correspond to a field annotated with @FXML.
-
-
-
Method Detail
-
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 an fx:id does not correspond to a field annotated with @FXML. This methods 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
java.util.List<java.lang.reflect.Field> getFXMLFields()
Gets all fields in this controller annotated with @FXML.
The fields are made accessible, if private.- Returns:
- the fields
-
getFXMLMethods
java.util.List<java.lang.reflect.Method> getFXMLMethods()
Gets all methods in this controller annotated with @FXML.
The methods are made accessible, if private.- Returns:
- the methods
-
-