java.lang.Object
org.praxislive.base.Binding
A BindingContext will normally have one Binding for each bound address. The
Binding may have more than one BindingAdaptor attached to it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstract type for binding to a Control.static final classAn adaptor implementation for syncing to properties, as defined byControlInfo.Type.PropertyorControlInfo.Type.ReadOnlyProperty.static enumRates for perdiodic syncing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbind(Binding.Adaptor adaptor) Method for Binding implementations to connect to an adaptor.abstract Optional<org.praxislive.core.ControlInfo> Get the ControlInfo of the bound Control, if available.abstract List<org.praxislive.core.Value> Get the most recent synced values, if the Control is a property.protected abstract voidsend(Binding.Adaptor adaptor, List<org.praxislive.core.Value> args) Method called by adaptors to send a call to the bound control.protected voidunbind(Binding.Adaptor adaptor) Method for Binding implementations to disconnect from an adaptor.protected abstract voidMethod called by adaptors on configuration changes such as activity or sync rate to allow bindings to recalculate their configuration.
-
Constructor Details
-
Binding
public Binding()
-
-
Method Details
-
getControlInfo
Get the ControlInfo of the bound Control, if available.- Returns:
- Optional of ControlInfo
-
getValues
Get the most recent synced values, if the Control is a property.- Returns:
- synced values
-
send
Method called by adaptors to send a call to the bound control.- Parameters:
adaptor- sending adaptorargs- argument list
-
updateAdaptorConfiguration
Method called by adaptors on configuration changes such as activity or sync rate to allow bindings to recalculate their configuration.- Parameters:
adaptor- changed adaptor
-
bind
Method for Binding implementations to connect to an adaptor.- Parameters:
adaptor- adaptor to connect
-
unbind
Method for Binding implementations to disconnect from an adaptor.- Parameters:
adaptor- adaptor to disconnect
-