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 void
addPropertyListener(PropertyListener<T> listener)
void
addWeakPropertyListener(PropertyListener<T> listener)
Add a listener to the list that's notified each time a change to the selection occurs.void
bind(Property<T> source)
void
bindBidirectional(MutableProperty<T> source)
void
dispose()
T
getValue()
void
removePropertyListener(PropertyListener<T> listener)
void
setValue(T value)
-
-
-
Constructor Detail
-
WrappedMutableProperty
public WrappedMutableProperty(MutableProperty<T> property)
-
-
Method Detail
-
addPropertyListener
public void addPropertyListener(PropertyListener<T> listener)
- Specified by:
addPropertyListener
in interfaceProperty<T>
-
addWeakPropertyListener
public void addWeakPropertyListener(PropertyListener<T> listener)
Description copied from interface:Property
Add 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:
addWeakPropertyListener
in interfaceProperty<T>
- Parameters:
listener
- the SelectionListener
-
removePropertyListener
public void removePropertyListener(PropertyListener<T> listener)
- Specified by:
removePropertyListener
in interfaceProperty<T>
-
bind
public void bind(Property<T> source)
- Specified by:
bind
in interfaceMutableProperty<T>
-
bindBidirectional
public void bindBidirectional(MutableProperty<T> source)
- Specified by:
bindBidirectional
in interfaceMutableProperty<T>
-
setValue
public void setValue(T value)
- Specified by:
setValue
in interfaceMutableProperty<T>
-
dispose
public void dispose()
-
-