Class NotifiableSmartPropertyDouble
Defines a smart property class which can hold double value and accepts IPropertyChangeListener to notify when new value is set
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class NotifiableSmartPropertyDouble extends SmartPropertyDouble
Constructors
NotifiableSmartPropertyDouble(IPropertyChangeListener listener)
Creates a new instance of NotifiableSmartProperty class
Declaration
public NotifiableSmartPropertyDouble(IPropertyChangeListener listener)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyChangeListener | listener | The listener change listener for this property |
NotifiableSmartPropertyDouble(IPropertyChangeListener listener, double defaultValue)
Creates a new instance of SmartProperty class
Declaration
public NotifiableSmartPropertyDouble(IPropertyChangeListener listener, double defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |