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