public class SmartPropertyFloat
extends java.lang.Object
Constructor and Description |
---|
SmartPropertyFloat()
Creates a new instance of
SmartPropertyFloat class |
SmartPropertyFloat(float defaultValue)
Creates a new instance of
SmartPropertyFloat class |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
float |
getValue()
Gets the current property value
|
int |
hashCode() |
protected void |
onPropertyChanged(float oldValue,
float newValue)
Called when property value is changed
|
void |
setStrongValue(float newValue)
Sets weak value for this property which overrides any previously set value
|
void |
setWeakValue(float newValue)
Sets weak value for this property if it was not overridden by
SmartProperty.setStrongValue(Object) call |
java.lang.String |
toString() |
public SmartPropertyFloat(float defaultValue)
SmartPropertyFloat
classdefaultValue
- The default value for propertypublic SmartPropertyFloat()
SmartPropertyFloat
classpublic final void setWeakValue(float newValue)
SmartProperty.setStrongValue(Object)
callnewValue
- The new value for propertypublic final void setStrongValue(float newValue)
newValue
- The new value for propertyprotected void onPropertyChanged(float oldValue, float newValue)
oldValue
- The old valuenewValue
- The new valuepublic final float getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object