public abstract class StyleableBooleanProperty extends BooleanPropertyBase implements StyleableProperty<Boolean>
BooleanPropertyBase
and provides a partial
implementation of a StyleableProperty
. The method
StyleableProperty.getCssMetaData()
is not implemented.
This class is used to make a BooleanProperty
,
that would otherwise be implemented as a BooleanPropertyBase
,
style‑able by CSS.BooleanPropertyBase
,
CssMetaData
,
StyleableProperty
Constructor and Description |
---|
StyleableBooleanProperty()
The constructor of the
StyleableBooleanProperty . |
StyleableBooleanProperty(boolean initialValue)
The constructor of the
StyleableBooleanProperty . |
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(StyleOrigin origin,
Boolean v)
This method is called from CSS code to set the value of the property.
|
void |
bind(ObservableValue<? extends Boolean> observable)
Create a unidirection binding for this
Property . |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(boolean v)
Set the wrapped value.
|
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
asObject, bindBidirectional, booleanProperty, setValue, unbindBidirectional
readOnlyBooleanProperty
and, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCssMetaData
getValue, setValue
getBean, getName
getValue
public StyleableBooleanProperty()
StyleableBooleanProperty
.public StyleableBooleanProperty(boolean initialValue)
StyleableBooleanProperty
.initialValue
- the initial value of the wrapped Object
public void applyStyle(StyleOrigin origin, Boolean v)
applyStyle
in interface StyleableProperty<Boolean>
public void bind(ObservableValue<? extends Boolean> observable)
Property
.
Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated. Note:
bind
in interface Property<Boolean>
bind
in class BooleanPropertyBase
observable
- The observable this Property
should be bound to.public void set(boolean v)
WritableBooleanValue.setValue(java.lang.Boolean)
,
this method uses primitive boolean.set
in interface WritableBooleanValue
set
in class BooleanPropertyBase
v
- The new valuepublic StyleOrigin getStyleOrigin()
getStyleOrigin
in interface StyleableProperty<Boolean>
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.