T
- Type of object to holdpublic class NotifiableSmartProperty<T> extends SmartProperty<T>
Object
instances and accepts IPropertyChangeListener
to notify when new value is setConstructor and Description |
---|
NotifiableSmartProperty(IPropertyChangeListener listener)
Creates a new instance of
NotifiableSmartProperty class |
NotifiableSmartProperty(IPropertyChangeListener listener,
T defaultValue)
Creates a new instance of
SmartProperty class |
Modifier and Type | Method and Description |
---|---|
protected void |
onPropertyChanged(T oldValue,
T newValue)
Called when property value is changed
|
equals, getValue, hashCode, setStrongValue, setWeakValue, toString
public NotifiableSmartProperty(IPropertyChangeListener listener, T defaultValue)
SmartProperty
classlistener
- The listener change listener for this propertydefaultValue
- The default value to setpublic NotifiableSmartProperty(IPropertyChangeListener listener)
NotifiableSmartProperty
classlistener
- The listener change listener for this propertyprotected void onPropertyChanged(T oldValue, T newValue)
onPropertyChanged
in class SmartProperty<T>
oldValue
- The old valuenewValue
- The new value