-
- All Superinterfaces:
org.tentackle.bind.Binder,java.lang.Comparable<org.tentackle.bind.Binder>
- All Known Implementing Classes:
DefaultFxComponentBinder
public interface FxComponentBinder extends org.tentackle.bind.BinderThe Binder that associates form components with object binding paths.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intbindWithInheritedBindables()Binds including inherited bindables.intbindWithInheritedComponents()Binds including inherited components.FxComponentBindinggetBinding(java.lang.String bindingPath)FxComponentBindinggetBinding(FxComponent component)Gets a binding by component.java.util.Collection<FxComponent>getBoundComponents()Gets the list of all bound components of this form.java.util.List<? extends org.tentackle.bind.Binding>getChangeableBindings()Gets the dynamically changeable bindings.FxControllergetController()Gets the controller bound by this binder.java.util.List<? extends org.tentackle.bind.Binding>getMandatoryBindings()Gets the dynamically mandatory bindings.java.util.Collection<FxComponent>getUnboundComponents()Gets the list of all unbound components of this form.FxComponentBindingremoveBinding(java.lang.String bindingPath)FxComponentBindingremoveBinding(FxComponent component)Programmatically removes a binding from this view.voidrequestChangeableUpdate()Request to update the changeable attribute of all dynamically mandatory components.voidrequestMandatoryUpdate()Request 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, unbind
-
-
-
-
Method Detail
-
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 submembers 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 submembers annotated with the
Bindable-annotation. Inherited components declared in parent controllers are included.CAUTION: expensive operation!
- Returns:
- number of members bound
-
getBinding
FxComponentBinding getBinding(FxComponent component)
Gets a binding by component.- Parameters:
component- the component assigned to the binding- Returns:
- the binding, null if component not bound
-
getBinding
FxComponentBinding getBinding(java.lang.String bindingPath)
Overridden to cast.
- Specified by:
getBindingin interfaceorg.tentackle.bind.Binder
-
getBoundComponents
java.util.Collection<FxComponent> getBoundComponents()
Gets the list of all bound components of this form.- Returns:
- the list of bound components, never null
-
getUnboundComponents
java.util.Collection<FxComponent> getUnboundComponents()
Gets the list of all unbound components of this form.- Returns:
- the list of unbound components, never null
-
removeBinding
FxComponentBinding removeBinding(FxComponent component)
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
FxComponentBinding removeBinding(java.lang.String bindingPath)
Overridden to cast.
- Specified by:
removeBindingin interfaceorg.tentackle.bind.Binder
-
getMandatoryBindings
java.util.List<? extends org.tentackle.bind.Binding> 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
java.util.List<? extends org.tentackle.bind.Binding> getChangeableBindings()
Gets the dynamically changeable bindings.- Returns:
- the changaeble bindings
-
requestChangeableUpdate
void requestChangeableUpdate()
Request to update the changeable attribute of all dynamically mandatory components.
-
-