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, unbindasObject, bindBidirectional, booleanProperty, setValue, unbindBidirectionalreadOnlyBooleanPropertyand, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, orclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCssMetaDatagetValue, setValuegetBean, getNamegetValuepublic StyleableBooleanProperty()
StyleableBooleanProperty.public StyleableBooleanProperty(boolean initialValue)
StyleableBooleanProperty.initialValue - the initial value of the wrapped Objectpublic 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 BooleanPropertyBaseobservable - 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 WritableBooleanValueset in class BooleanPropertyBasev - The new valuepublic StyleOrigin getStyleOrigin()
getStyleOrigin in interface StyleableProperty<Boolean>Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.