Class NotifiableSmartProperty<T>
Defines a smart property class which can hold Object instances and accepts IPropertyChangeListener to notify when new value is set
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class NotifiableSmartProperty<T> extends SmartProperty<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
NotifiableSmartProperty(IPropertyChangeListener listener)
Creates a new instance of NotifiableSmartProperty class
Declaration
public NotifiableSmartProperty(IPropertyChangeListener listener)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyChangeListener | listener | The listener change listener for this property |
NotifiableSmartProperty(IPropertyChangeListener listener, T defaultValue)
Creates a new instance of SmartProperty class
Declaration
public NotifiableSmartProperty(IPropertyChangeListener listener, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyChangeListener | listener | The listener change listener for this property |
| T | defaultValue | The default value to set |
Methods
onPropertyChanged(T oldValue, T newValue)
Called when property value is changed
Declaration
protected void onPropertyChanged(T oldValue, T newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| T | oldValue | |
| T | newValue |