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