Class AbstractProperty<T>
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperty<T>
-
- All Implemented Interfaces:
Property<T>
- Direct Known Subclasses:
AbstractListProperty
,AbstractMutableProperty
public abstract class AbstractProperty<T> extends java.lang.Object implements Property<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractProperty()
-
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.protected void
notifyPropertyChanged(PropertyEvent<T> event)
void
removePropertyListener(PropertyListener<T> listener)
-
-
-
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>
-
notifyPropertyChanged
protected void notifyPropertyChanged(PropertyEvent<T> event)
-
-