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