Class WrappedMutableProperty<T>
- java.lang.Object
-
- com.macrofocus.properties.implementation.WrappedMutableProperty<T>
-
- All Implemented Interfaces:
MutableProperty<T>,Property<T>
public class WrappedMutableProperty<T> extends java.lang.Object implements MutableProperty<T>
-
-
Constructor Summary
Constructors Constructor Description WrappedMutableProperty(MutableProperty<T> property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyListener(PropertyListener<T> listener)voidaddWeakPropertyListener(PropertyListener<T> listener)Add a listener to the list that's notified each time a change to the selection occurs.voidbind(Property<T> source)voidbindBidirectional(MutableProperty<T> source)voiddispose()TgetValue()voidremovePropertyListener(PropertyListener<T> listener)voidsetValue(T value)
-
-
-
Constructor Detail
-
WrappedMutableProperty
public WrappedMutableProperty(MutableProperty<T> property)
-
-
Method Detail
-
addPropertyListener
public void addPropertyListener(PropertyListener<T> listener)
- Specified by:
addPropertyListenerin interfaceProperty<T>
-
addWeakPropertyListener
public void addWeakPropertyListener(PropertyListener<T> listener)
Description copied from interface:PropertyAdd a listener to the list that's notified each time a change to the selection occurs. The listener will automatically be disposed of should no other object have a reference to it.- Specified by:
addWeakPropertyListenerin interfaceProperty<T>- Parameters:
listener- the SelectionListener
-
removePropertyListener
public void removePropertyListener(PropertyListener<T> listener)
- Specified by:
removePropertyListenerin interfaceProperty<T>
-
bind
public void bind(Property<T> source)
- Specified by:
bindin interfaceMutableProperty<T>
-
bindBidirectional
public void bindBidirectional(MutableProperty<T> source)
- Specified by:
bindBidirectionalin interfaceMutableProperty<T>
-
setValue
public void setValue(T value)
- Specified by:
setValuein interfaceMutableProperty<T>
-
dispose
public void dispose()
-
-