public class BooleanProperty extends AbstractToStringProperty<java.lang.Boolean>
Boolean
value.AbstractToStringProperty.ChildProperty<T>
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
defaultValue, key, preferences
Constructor and Description |
---|
BooleanProperty(java.lang.String key,
boolean defaultValue)
Constructs a new
BooleanProperty . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Boolean |
fromString(java.lang.String string)
Converts the string to an object of the given type.
|
java.lang.Boolean |
get()
Replies the value of this property.
|
boolean |
put(java.lang.Boolean value)
Sets this property to the specified value.
|
protected java.lang.String |
toString(java.lang.Boolean t)
Converts the string to an object of the given type.
|
getAsString, getChildProperty, getSpecialized
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
public BooleanProperty(java.lang.String key, boolean defaultValue)
BooleanProperty
.key
- The property keydefaultValue
- The default valuepublic java.lang.Boolean get()
AbstractProperty
get
in class AbstractToStringProperty<java.lang.Boolean>
public boolean put(java.lang.Boolean value)
AbstractProperty
put
in class AbstractToStringProperty<java.lang.Boolean>
value
- The new value of this propertyprotected java.lang.Boolean fromString(java.lang.String string)
AbstractToStringProperty
fromString
in class AbstractToStringProperty<java.lang.Boolean>
string
- The stringprotected java.lang.String toString(java.lang.Boolean t)
AbstractToStringProperty
toString
in class AbstractToStringProperty<java.lang.Boolean>
t
- The object.