java.lang.Object
org.tentackle.fx.AbstractFxController
org.tentackle.fx.AbstractValidateableFxController
- All Implemented Interfaces:
FxController,ScopeConfigurator,Validateable
public abstract class AbstractValidateableFxController
extends AbstractFxController
implements Validateable
Base class for controllers that validate themselves.
Not applicable to controllers that validate their bindables explicitly.
Not applicable to controllers that validate their bindables explicitly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NavigableSet<ValidationMapper>Gets the validation mapper for controller-local bindables.protected voidPrepares the validation.
Invoked from withinvalidateForm()before the validation is performed.booleanValidates the controller.Methods inherited from class org.tentackle.fx.AbstractFxController
configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjectionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.validate.Validateable
validate
-
Constructor Details
-
AbstractValidateableFxController
public AbstractValidateableFxController()Parent constructor.
-
-
Method Details
-
validateForm
public boolean validateForm()Validates the controller.- Returns:
- true if ok, false if validation errors (not only warnings)
-
prepareValidation
protected void prepareValidation()Prepares the validation.
Invoked from withinvalidateForm()before the validation is performed. -
getValidationMappers
Gets the validation mapper for controller-local bindables.- Returns:
- the validation mappers
-