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