Class OverrideProperty<T>
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperty<T>
-
- com.macrofocus.properties.implementation.AbstractMutableProperty<T>
-
- com.macrofocus.properties.implementation.OverrideProperty<T>
-
- All Implemented Interfaces:
MutableProperty<T>
,Property<T>
public class OverrideProperty<T> extends AbstractMutableProperty<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableProperty<T>
defaultProperty
-
Constructor Summary
Constructors Constructor Description OverrideProperty(MutableProperty<java.lang.Boolean> overrideDefaults, MutableProperty<T> defaultProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MutableProperty<T>
addProperty(MutableProperty<T> overrideProperty)
protected MutableProperty<T>
createOverrideProperty()
MutableProperty<T>
getOverrideProperty()
T
getOverrideValue()
T
getValue()
protected void
removeProperty(MutableProperty<T> overrideProperty)
void
reset()
void
setValue(T value)
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractMutableProperty
bind, bindBidirectional
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractProperty
addPropertyListener, addWeakPropertyListener, notifyPropertyChanged, removePropertyListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.properties.Property
addPropertyListener, addWeakPropertyListener, removePropertyListener
-
-
-
-
Field Detail
-
defaultProperty
protected final MutableProperty<T> defaultProperty
-
-
Constructor Detail
-
OverrideProperty
public OverrideProperty(MutableProperty<java.lang.Boolean> overrideDefaults, MutableProperty<T> defaultProperty)
-
-
Method Detail
-
getOverrideProperty
public MutableProperty<T> getOverrideProperty()
-
createOverrideProperty
protected MutableProperty<T> createOverrideProperty()
-
addProperty
protected MutableProperty<T> addProperty(MutableProperty<T> overrideProperty)
-
removeProperty
protected void removeProperty(MutableProperty<T> overrideProperty)
-
setValue
public void setValue(T value)
-
getValue
public T getValue()
-
getOverrideValue
public T getOverrideValue()
-
reset
public void reset()
-
-