Class StyleableBooleanProperty
- All Implemented Interfaces:
Observable, Property<Boolean>, ReadOnlyProperty<Boolean>, ObservableBooleanValue, ObservableValue<Boolean>, WritableBooleanValue, WritableValue<Boolean>, StyleableProperty<Boolean>
- Direct Known Subclasses:
SimpleStyleableBooleanProperty
public abstract class StyleableBooleanProperty
extends BooleanPropertyBase
implements StyleableProperty<Boolean>
This class extends
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,
styleable by CSS.- Since:
- JavaFX 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe constructor of theStyleableBooleanProperty.StyleableBooleanProperty(boolean initialValue) The constructor of theStyleableBooleanProperty. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(StyleOrigin origin, Boolean v) This method is called from CSS code to set the value of the property.Tells the origin of the value of the property.Methods declared in class BooleanPropertyBase
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbindModifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) Adds anInvalidationListenerwhich will be notified whenever theObservablebecomes invalid.voidaddListener(ChangeListener<? super Boolean> listener) Adds aChangeListenerwhich will be notified whenever the value of theObservableValuechanges.voidbind(ObservableValue<? extends Boolean> rawObservable) Create a unidirection binding for thisProperty.protected voidSends notifications to all attachedInvalidationListenersandChangeListeners.booleanget()Returns the current value of thisObservableBooleanValue.protected voidThe methodinvalidated()can be overridden to receive invalidation notifications.booleanisBound()Can be used to check, if aPropertyis bound.voidremoveListener(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservablebecomes invalid.voidremoveListener(ChangeListener<? super Boolean> listener) Removes the given listener from the list of listeners that are notified whenever the value of theObservableValuechanges.voidset(boolean newValue) Set the wrapped value.toString()Returns a string representation of thisBooleanPropertyBaseobject.voidunbind()Remove the unidirectional binding for thisProperty.Methods declared in class BooleanProperty
asObject, bindBidirectional, booleanProperty, setValue, unbindBidirectionalModifier and TypeMethodDescriptionasObject()Creates anObjectPropertythat holds the value of thisBooleanProperty.voidbindBidirectional(Property<Boolean> other) Create a bidirectional binding between thisPropertyand another one.static BooleanPropertybooleanProperty(Property<Boolean> property) Returns aBooleanPropertythat wraps aProperty.voidSet the wrapped value.voidunbindBidirectional(Property<Boolean> other) Removes a bidirectional binding between thisPropertyand another one.Methods declared in class ReadOnlyBooleanProperty
readOnlyBooleanPropertyModifier and TypeMethodDescriptionstatic ReadOnlyBooleanPropertyreadOnlyBooleanProperty(ReadOnlyProperty<Boolean> property) Returns aReadOnlyBooleanPropertythat wraps aReadOnlyProperty.Methods declared in class BooleanExpression
and, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, orModifier and TypeMethodDescriptionand(ObservableBooleanValue other) Creates a newBooleanExpressionthat performs the conditional AND-operation on thisBooleanExpressionand aObservableBooleanValue.asString()static BooleanExpressionReturns aBooleanExpressionthat wraps aObservableBooleanValue.static BooleanExpressionbooleanExpression(ObservableValue<Boolean> value) Returns aBooleanExpressionthat wraps anObservableValue.getValue()Returns the current value of thisObservableValueisEqualTo(ObservableBooleanValue other) Creates a newBooleanExpressionthat holdstrueif this and anotherObservableBooleanValueare equal.Creates a newBooleanExpressionthat holdstrueif this and anotherObservableBooleanValueare equal.not()Creates a newBooleanExpressionthat calculates the negation of thisBooleanExpression.or(ObservableBooleanValue other) Creates a newBooleanExpressionthat performs the conditional OR-operation on thisBooleanExpressionand aObservableBooleanValue.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods declared in interface Observable
subscribeModifier and TypeMethodDescriptiondefault SubscriptionCreates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.Methods declared in interface ObservableValue
flatMap, map, orElse, subscribe, subscribe, whenModifier and TypeMethodDescriptiondefault <U> ObservableValue<U> flatMap(Function<? super Boolean, ? extends ObservableValue<? extends U>> mapper) Returns anObservableValuethat holds the value of anObservableValueproduced by applying the given mapping function on this value.default <U> ObservableValue<U> Returns anObservableValuethat holds the result of applying the given mapping function on this value.default ObservableValue<Boolean> Returns anObservableValuethat holds this value, or the given constant if it isnull.default Subscriptionsubscribe(BiConsumer<? super Boolean, ? super Boolean> changeSubscriber) Creates aSubscriptionon thisObservableValuewhich calls the givenchangeSubscriberwith the old and new value whenever its value changes.default SubscriptionCreates aSubscriptionon thisObservableValuewhich immediately provides the current value to the givenvalueSubscriber, followed by any subsequent values whenever its value changes.default ObservableValue<Boolean> when(ObservableValue<Boolean> condition) Returns anObservableValuethat holds this value and is updated only whenconditionholdstrue.Methods declared in interface ReadOnlyProperty
getBean, getNameMethods declared in interface StyleableProperty
getCssMetaDataModifier and TypeMethodDescriptionCssMetaData<? extends Styleable, Boolean> Reflect back the CssMetaData that corresponds to thisjavafx.beans.property.StyleablePropertyMethods declared in interface WritableValue
getValue
-
Constructor Details
-
StyleableBooleanProperty
public StyleableBooleanProperty()The constructor of theStyleableBooleanProperty. -
StyleableBooleanProperty
public StyleableBooleanProperty(boolean initialValue) The constructor of theStyleableBooleanProperty.- Parameters:
initialValue- the initial value of the wrappedObject
-
-
Method Details
-
applyStyle
This method is called from CSS code to set the value of the property.- Specified by:
applyStylein interfaceStyleableProperty<Boolean>- Parameters:
origin- the originv- the value
-
getStyleOrigin
Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.- Specified by:
getStyleOriginin interfaceStyleableProperty<Boolean>- Returns:
- the style origin
-