Spec-Zone .ru
спецификации, руководства, описания, API
|
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, hashCode
and, asString, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
addListener, getValue, removeListener
addListener, removeListener
get, set
getValue
get
public 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 Property
public 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 Property
public java.lang.String toString()
BooleanProperty
object.toString
in class ReadOnlyBooleanProperty
BooleanProperty
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to