Class ObservableSmartPropertyInteger
Defines a smart property class which can hold int value and provides listener with old and new value
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ObservableSmartPropertyInteger extends SmartPropertyInteger
Constructors
ObservableSmartPropertyInteger(ObservableSmartPropertyInteger.IPropertyChangeListener listener)
Creates a new instance of ObservableSmartPropertyInteger class
Declaration
public ObservableSmartPropertyInteger(ObservableSmartPropertyInteger.IPropertyChangeListener listener)
Parameters
| Type | Name | Description |
|---|---|---|
| ObservableSmartPropertyInteger.IPropertyChangeListener | listener | The listener change listener for this property |
ObservableSmartPropertyInteger(ObservableSmartPropertyInteger.IPropertyChangeListener listener, int defaultValue)
Creates a new instance of ObservableSmartPropertyInteger class
Declaration
public ObservableSmartPropertyInteger(ObservableSmartPropertyInteger.IPropertyChangeListener listener, int defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| ObservableSmartPropertyInteger.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 |