Property wrapping a
boolean value.
The value of a BooleanProperty can be get and set with get(),
getValue(), set(boolean), and setValue(Boolean).
A property can be bound and unbound unidirectional with
bind(ObservableValue) and unbind(). Bidirectional bindings
can be created and removed with bindBidirectional(Property) and
unbindBidirectional(Property).
The context of a BooleanProperty can be read with getBean()
and getName().
Note
setting or binding this property to a null value will set the property to "false". See setValue(java..
javafx.beans.value.ObservableBooleanValue , javafx.beans.value.WritableBooleanValue , ReadOnlyBooleanProperty, Property
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectProperty | Returns: the newObjectPropertyOverrides javafx. Creates an |
| public void | bindBidirectional(Property<Boolean>
the other other)PropertyImplements javafx. Create a bidirectional binding between this |
| public static BooleanProperty | Returns: ABooleanProperty that wraps the
Property if necessaryThe source property)PropertyReturns a |
| public void | setValue(Boolean
The new value v)Implements javafx. Set the wrapped value. |
| public String | Returns: a string representation of thisBooleanProperty object.Overrides javafx. Returns a string representation of this |
| public void | unbindBidirectional(Property<Boolean>
the other other)PropertyImplements javafx. Removes a bidirectional binding between this |
| BooleanProperty | back to summary |
|---|---|
| public BooleanProperty() Sole constructor | |
| asObject | back to summary |
|---|---|
| public ObjectProperty Overrides javafx. Creates an
| |
| bindBidirectional | back to summary |
|---|---|
| public void bindBidirectional(Property<Boolean> other) Implements javafx. Doc from javafx. Create a bidirectional binding between this It is possible to have multiple bidirectional bindings of one Property. JavaFX bidirectional binding implementation use weak listeners. This means bidirectional binding does not prevent properties from being garbage collected. | |
| booleanProperty | back to summary |
|---|---|
| public static BooleanProperty booleanProperty(final Property<Boolean> property) Returns a Note null values in the source property will be interpreted as "false"
| |
| setValue | back to summary |
|---|---|
| public void setValue(Boolean v) Implements javafx. Doc from javafx. Set the wrapped value. Note this method should accept null without throwing an exception, setting "false" instead. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| unbindBidirectional | back to summary |
|---|---|
| public void unbindBidirectional(Property<Boolean> other) Implements javafx. Doc from javafx. Removes a bidirectional binding between this
| |