Class NotifiableSmartPropertyInteger
Defines a smart property class which can hold int value and accepts IPropertyChangeListener to notify when new value is set
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class NotifiableSmartPropertyInteger extends SmartPropertyInteger
Constructors
NotifiableSmartPropertyInteger(IPropertyChangeListener listener)
Creates a new instance of NotifiableSmartPropertyInteger class
Declaration
public NotifiableSmartPropertyInteger(IPropertyChangeListener listener)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyChangeListener | listener | The listener change listener for this property |
NotifiableSmartPropertyInteger(IPropertyChangeListener listener, int defaultValue)
Creates a new instance of NotifiableSmartPropertyInteger class
Declaration
public NotifiableSmartPropertyInteger(IPropertyChangeListener listener, int defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyChangeListener | listener | The listener change listener for this property |
| int | defaultValue | The default value to set |
Methods
onPropertyChanged(int oldValue, int newValue)
Called when property value is changed
Declaration
protected void onPropertyChanged(int oldValue, int newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| int | oldValue | |
| int | newValue |