public final class SingleThreadParameter<VALUE_TYPE> extends ParameterWrapper<VALUE_TYPE> implements IParameter<VALUE_TYPE>
Constructor and Description |
---|
SingleThreadParameter(IParameter<VALUE_TYPE> original,
ISingleThreadAccess singleThreadAccess) |
SingleThreadParameter(IParameter<VALUE_TYPE> original,
ISingleThreadAccess readThreadAccess,
ISingleThreadAccess writeThreadAccess) |
Modifier and Type | Method and Description |
---|---|
void |
addValueListener(IObservableValueListener<?> listener)
Adds a value listener
|
VALUE_TYPE |
getValue()
Gets the value
|
void |
removeValueListener(IObservableValueListener<?> listener)
Removes a value listener
|
void |
setValue(VALUE_TYPE value)
Sets the value
|
getDefaultValue, getDescription, getLabel, getValueType, toString
getOriginal, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getDescription, getLabel, getValueType
public SingleThreadParameter(IParameter<VALUE_TYPE> original, ISingleThreadAccess singleThreadAccess)
public SingleThreadParameter(IParameter<VALUE_TYPE> original, ISingleThreadAccess readThreadAccess, ISingleThreadAccess writeThreadAccess)
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 removeSiehe auch Jowidgets Nutzerhandbuch