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