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