Class AbstractFxController

java.lang.Object
org.tentackle.fx.AbstractFxController
All Implemented Interfaces:
FxController, ScopeConfigurator
Direct Known Subclasses:
AbstractValidateableFxController, I18NEditor

public abstract class AbstractFxController extends Object implements FxController, ScopeConfigurator
Base class for tentackle fx controllers.
Author:
harald
  • Constructor Details

    • AbstractFxController

      public AbstractFxController()
      Parent constructor.
  • Method Details

    • getView

      public javafx.scene.Parent getView()
      Description copied from interface: FxController
      Gets the view managed by this controller.
      Specified by:
      getView in interface FxController
      Returns:
      the view
    • setView

      public void setView(javafx.scene.Parent view)
      Description copied from interface: FxController
      Sets the view managed by this controller.
      Specified by:
      setView in interface FxController
      Parameters:
      view - the view
    • getStage

      public javafx.stage.Stage getStage()
      Description copied from interface: FxController
      Gets the stage of which the controller's view is the root of the scene.
      Specified by:
      getStage in interface FxController
      Returns:
      the stage, null if not a root scene
    • getContainer

      public FxContainer getContainer()
      Description copied from interface: FxController
      Gets the top-level container.
      This is usually the view.
      Specified by:
      getContainer in interface FxController
      Returns:
      the container, null if none
    • getFXMLFields

      public List<Field> getFXMLFields()
      Description copied from interface: FxController
      Gets all fields in this controller annotated with @FXML.
      The fields are made accessible, if private.
      Specified by:
      getFXMLFields in interface FxController
      Returns:
      the fields
    • getFXMLMethods

      public List<Method> getFXMLMethods()
      Description copied from interface: FxController
      Gets all methods in this controller annotated with @FXML.
      The methods are made accessible, if private.
      Specified by:
      getFXMLMethods in interface FxController
      Returns:
      the methods
    • validateInjections

      public void validateInjections()
      Description copied from interface: FxController
      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.
      Specified by:
      validateInjections in interface FxController
    • getDefaultScopes

      public Class<? extends ValidationScope>[] getDefaultScopes()

      For bindables defined within this controller, the default scopes are:
      MandatoryScope and ChangeableScope.

      Specified by:
      getDefaultScopes in interface ScopeConfigurator
    • createBinder

      protected FxComponentBinder createBinder()
      Creates a binder for this form.
      The default implementation invokes FormBindingFactory.createFormComponentBinder(this).
      Returns:
      the binder
    • getBinder

      public FxComponentBinder getBinder()
      Description copied from interface: FxController
      Gets the binder of this controller.
      Specified by:
      getBinder in interface FxController
      Returns:
      the binder, never null.
    • configure

      public void configure()
      Description copied from interface: FxController
      Configures the controller as the final step in initialization.
      Specified by:
      configure in interface FxController