Package org.praxislive.ide.core.api
Class ValuePropertyAdaptor
java.lang.Object
org.praxislive.base.Binding.Adaptor
org.praxislive.ide.core.api.ValuePropertyAdaptor
- Direct Known Subclasses:
ValuePropertyAdaptor.ReadOnly,ValuePropertyAdaptor.ReadWrite
public abstract class ValuePropertyAdaptor
extends org.praxislive.base.Binding.Adaptor
A
Binding.Adaptor with support for firing property change events. Use
one of ValuePropertyAdaptor.ReadOnly or ValuePropertyAdaptor.ReadWrite depending on whether the binding
should support setting the value.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classA writable value property adaptor. -
Constructor Summary
ConstructorsConstructorDescriptionValuePropertyAdaptor(Object source, String property, boolean alwaysActive, org.praxislive.base.Binding.SyncRate rate) Create a ValuePropertyAdaptor. -
Method Summary
Methods inherited from class org.praxislive.base.Binding.Adaptor
getBinding, getSyncRate, getValueIsAdjusting, isActive, onError, onResponse, send, setActive, setSyncRate, updateBindingConfiguration
-
Constructor Details
-
ValuePropertyAdaptor
public ValuePropertyAdaptor(Object source, String property, boolean alwaysActive, org.praxislive.base.Binding.SyncRate rate) Create a ValuePropertyAdaptor.- Parameters:
source- source of events (may be null to use the adaptor itself)property- name of property for eventsalwaysActive- whether to sync even without listenersrate- sync rate
-
-
Method Details
-
getValue
public org.praxislive.core.Value getValue() -
update
public void update()- Overrides:
updatein classorg.praxislive.base.Binding.Adaptor
-
addPropertyChangeListener
Add a property change listener.- Parameters:
listener- property change listener
-
removePropertyChangeListener
Remove a property change listener.- Parameters:
listener- property change listener
-