- java.lang.Object
-
- org.praxislive.base.Binding
-
public abstract class Binding extends Object
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 Classes Modifier and Type Class Description static class
Binding.Adaptor
Abstract type for binding to a Control.static class
Binding.SyncRate
Possible rates for syncing.
-
Constructor Summary
Constructors Constructor Description Binding()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
bind(Binding.Adaptor adaptor)
abstract Optional<ControlInfo>
getControlInfo()
Get the ControlInfo of the bound Control, if available.abstract List<Value>
getValues()
Get the most recent synced values, if the Control is a property.protected abstract void
send(Binding.Adaptor adaptor, List<Value> args)
protected void
unbind(Binding.Adaptor adaptor)
protected abstract void
updateAdaptorConfiguration(Binding.Adaptor adaptor)
-
-
-
Method Detail
-
getControlInfo
public abstract Optional<ControlInfo> getControlInfo()
Get the ControlInfo of the bound Control, if available.- Returns:
- Optional of ControlInfo
-
getValues
public abstract List<Value> getValues()
Get the most recent synced values, if the Control is a property.- Returns:
- synced values
-
send
protected abstract void send(Binding.Adaptor adaptor, List<Value> args)
-
updateAdaptorConfiguration
protected abstract void updateAdaptorConfiguration(Binding.Adaptor adaptor)
-
bind
protected void bind(Binding.Adaptor adaptor)
-
unbind
protected void unbind(Binding.Adaptor adaptor)
-
-