Class SmartPropertyDouble
Defines a smart property class which can hold double value
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class SmartPropertyDouble
Constructors
SmartPropertyDouble()
Creates a new instance of SmartPropertyDouble class
Declaration
public SmartPropertyDouble()
SmartPropertyDouble(double defaultValue)
Creates a new instance of SmartPropertyDouble class
Declaration
public SmartPropertyDouble(double defaultValue)
Parameters
Type | Name | Description |
---|---|---|
double | defaultValue | The default value for property |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
getValue()
Gets the current property value
Declaration
public final double getValue()
Returns
Type | Description |
---|---|
double | The current value of this property |
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
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 | The old value |
double | newValue | The new value |
setStrongValue(double newValue)
Sets weak value for this property which overrides any previously set value
Declaration
public final void setStrongValue(double newValue)
Parameters
Type | Name | Description |
---|---|---|
double | newValue | The new value for property |
setWeakValue(double newValue)
Sets weak value for this property if it was not overridden by SmartProperty#setStrongValue(Object) call
Declaration
public final void setWeakValue(double newValue)
Parameters
Type | Name | Description |
---|---|---|
double | newValue | The new value for property |
toString()
Declaration
public String toString()
Returns
Type | Description |
---|---|
String |