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