Package com.macrofocus.common.properties
Class AbstractProperty<T>
java.lang.Object
com.macrofocus.common.properties.AbstractProperty<T>
- All Implemented Interfaces:
Property<T>
- Direct Known Subclasses:
AbstractListProperty
,AbstractMutableProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.protected void
notifyPropertyChanged
(PropertyEvent<T> event) void
removePropertyListener
(PropertyListener<T> listener)
-
Constructor Details
-
AbstractProperty
public AbstractProperty()
-
-
Method Details
-
addPropertyListener
- Specified by:
addPropertyListener
in interfaceProperty<T>
-
addWeakPropertyListener
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
- Specified by:
removePropertyListener
in interfaceProperty<T>
-
notifyPropertyChanged
-