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 TypeMethodDescriptionvoidaddPropertyListener(PropertyListener<T> listener) voidaddWeakPropertyListener(PropertyListener<T> listener) Add a listener to the list that's notified each time a change to the selection occurs.protected voidnotifyPropertyChanged(PropertyEvent<T> event) voidremovePropertyListener(PropertyListener<T> listener)
-
Constructor Details
-
AbstractProperty
public AbstractProperty()
-
-
Method Details
-
addPropertyListener
- Specified by:
addPropertyListenerin interfaceProperty<T>
-
addWeakPropertyListener
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
- Specified by:
removePropertyListenerin interfaceProperty<T>
-
notifyPropertyChanged
-