public abstract class BooleanProperty extends ReadOnlyBooleanProperty implements Property<java.lang.Boolean>, WritableBooleanValue
Property wrapping a
boolean value.
The value of a BooleanProperty can be get and set with ObservableBooleanValue.get(),
BooleanExpression.getValue(), WritableBooleanValue.set(boolean), and setValue(Boolean).
A property can be bound and unbound unidirectional with
Property.bind(ObservableValue) and Property.unbind(). Bidirectional bindings
can be created and removed with bindBidirectional(Property) and
unbindBidirectional(Property).
The context of a BooleanProperty can be read with ReadOnlyProperty.getBean()
and ReadOnlyProperty.getName().| Constructor and Description |
|---|
BooleanProperty() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindBidirectional(Property<java.lang.Boolean> other)
Create a bidirectional binding between this
Property and another
one. |
void |
setValue(java.lang.Boolean v)
Set the wrapped value.
|
java.lang.String |
toString()
Returns a string representation of this
BooleanProperty object. |
void |
unbindBidirectional(Property<java.lang.Boolean> other)
Remove a bidirectional binding between this
Property and another
one. |
equals, hashCodeand, asString, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, orclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBean, getNameaddListener, getValue, removeListeneraddListener, removeListenerget, setgetValuegetpublic void setValue(java.lang.Boolean v)
setValue in interface WritableValue<java.lang.Boolean>v - The new valuepublic void bindBidirectional(Property<java.lang.Boolean> other)
Property and another
one.bindBidirectional in interface Property<java.lang.Boolean>other - the other Propertypublic void unbindBidirectional(Property<java.lang.Boolean> other)
Property and another
one.
If no bidirectional binding between the properties exists, calling this
method has no effect.unbindBidirectional in interface Property<java.lang.Boolean>other - the other Propertypublic java.lang.String toString()
BooleanProperty object.toString in class ReadOnlyBooleanPropertyBooleanProperty object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.