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