public final class ThreadSyncParameter<VALUE_TYPE> extends ParameterWrapper<VALUE_TYPE> implements IParameter<VALUE_TYPE>
Constructor and Description |
---|
ThreadSyncParameter(IParameter<VALUE_TYPE> original,
ISingleThreadAccess originalThreadAccess,
ISingleThreadAccess newThreadAccess) |
Modifier and Type | Method and Description |
---|---|
void |
addValueListener(IObservableValueListener<?> listener)
Adds a value listener
|
void |
dispose() |
VALUE_TYPE |
getValue()
Gets the value
|
void |
removeValueListener(IObservableValueListener<?> listener)
Removes a value listener
|
void |
setValue(VALUE_TYPE value)
Sets the value
|
java.lang.String |
toString() |
getDefaultValue, getDescription, getLabel, getValueType
getOriginal, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getDescription, getLabel, getValueType
public ThreadSyncParameter(IParameter<VALUE_TYPE> original, ISingleThreadAccess originalThreadAccess, ISingleThreadAccess newThreadAccess)
public void setValue(VALUE_TYPE value)
IObservableValue
setValue
in interface IObservableValue<VALUE_TYPE>
setValue
in class ObservableValueWrapper<VALUE_TYPE>
value
- The value to setpublic VALUE_TYPE getValue()
IObservableValue
getValue
in interface IObservableValue<VALUE_TYPE>
getValue
in class ObservableValueWrapper<VALUE_TYPE>
public void addValueListener(IObservableValueListener<?> listener)
IObservableValue
addValueListener
in interface IObservableValue<VALUE_TYPE>
addValueListener
in class ObservableValueWrapper<VALUE_TYPE>
listener
- The listener to addpublic void removeValueListener(IObservableValueListener<?> listener)
IObservableValue
removeValueListener
in interface IObservableValue<VALUE_TYPE>
removeValueListener
in class ObservableValueWrapper<VALUE_TYPE>
listener
- The listener to removepublic void dispose()
public java.lang.String toString()
toString
in class ParameterWrapper<VALUE_TYPE>
Siehe auch Jowidgets Nutzerhandbuch