- All Superinterfaces:
Binder,Comparable<Binder>
- All Known Implementing Classes:
DefaultFxComponentBinder
The Binder that associates form components with object binding paths.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionintBinds including inherited bindables.intBinds including inherited components.getBinding(String bindingPath) getBinding(FxComponent component) Gets a binding by component.Gets the list of all bound components of this form.Gets the dynamically changeable bindings.Gets the controller bound by this binder.Gets the dynamically mandatory bindings.Gets the list of all unbound components of this form.removeBinding(String bindingPath) removeBinding(FxComponent component) Programmatically removes a binding from this view.voidRequest to update the changeable attribute of all dynamically mandatory components.voidRequest to update the mandatory attribute of all dynamically mandatory components.Methods inherited from interface org.tentackle.bind.Binder
addBinding, addToModelListener, addToViewListener, addValidationListener, assertAllBound, bind, bindAllInherited, fireToModel, fireToView, fireValidated, getBindingProperty, getBindingProperty, getBindings, getInstanceNumber, getToModelListeners, getToViewListeners, getValidationListeners, getValidationScope, putBindingProperty, removeToModelListener, removeToViewListener, removeValidationListener, setValidationScope, unbindMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getController
FxController getController()Gets the controller bound by this binder.- Returns:
- the controller
-
bindWithInheritedBindables
int bindWithInheritedBindables()Binds including inherited bindables.The controller will be scanned for members or sub members annotated with the
Bindable-annotation. Inherited members of the controller's parent classes will be included as well.CAUTION: expensive operation!
- Returns:
- number of members bound
-
bindWithInheritedComponents
int bindWithInheritedComponents()Binds including inherited components.The controller will be scanned for members or sub members annotated with the
Bindable-annotation. Inherited components declared in parent controllers are included.CAUTION: expensive operation!
- Returns:
- number of members bound
-
getBinding
Gets a binding by component.- Parameters:
component- the component assigned to the binding- Returns:
- the binding, null if component not bound
-
getBinding
Overridden to cast.
- Specified by:
getBindingin interfaceBinder
-
getBoundComponents
Collection<FxComponent> getBoundComponents()Gets the list of all bound components of this form.- Returns:
- the list of bound components, never null
-
getUnboundComponents
Collection<FxComponent> getUnboundComponents()Gets the list of all unbound components of this form.- Returns:
- the list of unbound components, never null
-
removeBinding
Programmatically removes a binding from this view.- Parameters:
component- the component assigned to the binding- Returns:
- the removed binding, null if no such binding found
-
removeBinding
Overridden to cast.
- Specified by:
removeBindingin interfaceBinder
-
getMandatoryBindings
Gets the dynamically mandatory bindings.- Returns:
- the mandatory bindings
-
requestMandatoryUpdate
void requestMandatoryUpdate()Request to update the mandatory attribute of all dynamically mandatory components. -
getChangeableBindings
Gets the dynamically changeable bindings.- Returns:
- the changeable bindings
-
requestChangeableUpdate
void requestChangeableUpdate()Request to update the changeable attribute of all dynamically mandatory components.
-