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