Top Description Inners Fields Constructors Methods
javafx.css

public abstract Class StyleableBooleanProperty

extends BooleanPropertyBase
implements StyleableProperty<Boolean>
Class Inheritance
All Implemented Interfaces
javafx.css.StyleableProperty, javafx.beans.value.WritableValue
Known Direct Subclasses
javafx.css.SimpleStyleableBooleanProperty
Imports
com.sun.javafx.css.TransitionMediator, .TransitionDefinition, com.sun.javafx.scene.NodeHelper, com.sun.javafx.tk.Toolkit, javafx.beans.property.BooleanPropertyBase, javafx.beans.value.ObservableValue, javafx.scene.Node

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 javafx.beans.property.BooleanProperty, that would otherwise be implemented as a BooleanPropertyBase, styleable by CSS.
Since
JavaFX 8.0
See Also
javafx.beans.property.BooleanPropertyBase, CssMetaData, StyleableProperty

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private StyleableBooleanProperty.TransitionMediatorImpl
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableBooleanProperty()

The constructor of the StyleableBooleanProperty.

public
StyleableBooleanProperty(boolean
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableBooleanProperty.

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin origin, Boolean v)

Implements javafx.css.StyleableProperty.applyStyle.

This method is called from CSS code to set the value of the property.

public void
bind(ObservableValue<? extends Boolean> observable)

Overrides javafx.beans.property.BooleanPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Create a unidirection binding for this Property.

public StyleOrigin
getStyleOrigin()

Implements javafx.css.StyleableProperty.getStyleOrigin.

Tells the origin of the value of the property.

private void
public void
Inherited from javafx.beans.property.BooleanPropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

mediatorback to summary
private StyleableBooleanProperty.TransitionMediatorImpl mediator
originback to summary
private StyleOrigin origin

Constructor Detail

StyleableBooleanPropertyback to summary
public StyleableBooleanProperty()

The constructor of the StyleableBooleanProperty.

StyleableBooleanPropertyback to summary
public StyleableBooleanProperty(boolean initialValue)

The constructor of the StyleableBooleanProperty.

Parameters
initialValue:boolean

the initial value of the wrapped Object

Method Detail

applyStyleback to summary
public void applyStyle(StyleOrigin origin, Boolean v)

Implements javafx.css.StyleableProperty.applyStyle.

Doc from javafx.css.StyleableProperty.applyStyle.

This method is called from CSS code to set the value of the property.

Annotations
@Override
bindback to summary
public void bind(ObservableValue<? extends Boolean> observable)

Overrides javafx.beans.property.BooleanPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Doc from javafx.beans.property.BooleanPropertyBase.bind.

Create a unidirection binding for this 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:

Annotations
@Override
getStyleOriginback to summary
public StyleOrigin getStyleOrigin()

Implements javafx.css.StyleableProperty.getStyleOrigin.

Doc from javafx.css.StyleableProperty.getStyleOrigin.

Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.

Annotations
@Override
onUserChangeback to summary
private void onUserChange()
setback to summary
public void set(boolean v)

Overrides javafx.beans.property.BooleanPropertyBase.set.

Implements javafx.beans.value.WritableBooleanValue.set.

Doc from javafx.beans.property.BooleanPropertyBase.set.

Set the wrapped value. Unlike setValue(java.lang.Boolean), this method uses primitive boolean.

Annotations
@Override
javafx.css back to summary

private Class StyleableBooleanProperty.TransitionMediatorImpl

extends TransitionMediator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final boolean
private boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
TransitionMediatorImpl(boolean startValue, boolean endValue)

Method Summary

Modifier and TypeMethod and Description
public StyleableProperty<?>
getStyleableProperty()

Implements abstract com.sun.javafx.css.TransitionMediator.getStyleableProperty.

Returns the styleable property targeted by the transition.

public void
onStop()

Implements abstract com.sun.javafx.css.TransitionMediator.onStop.

Occurs when the timer has stopped and the mediator should be discarded.

public void
onUpdate(double progress)

Implements abstract com.sun.javafx.css.TransitionMediator.onUpdate.

Derived classes should implement this method to compute a new intermediate value based on the current progress, and update the StyleableProperty accordingly.

public boolean
updateReversingAdjustedStartValue(TransitionMediator existingMediator)

Implements abstract com.sun.javafx.css.TransitionMediator.updateReversingAdjustedStartValue.

Derived classes must implement the following protocol:

  1. If the reversing-adjusted start value of the existing transition is equal to the end value of this transition: Set the reversing-adjusted start value of this transition to the end value of the existing transition and return true.
  2. Otherwise, return false.
Inherited from com.sun.javafx.css.TransitionMediator:
cancelrun

Field Detail

endValueback to summary
private final boolean endValue
reversingAdjustedStartValueback to summary
private boolean reversingAdjustedStartValue
startValueback to summary
private final boolean startValue

Constructor Detail

TransitionMediatorImplback to summary
public TransitionMediatorImpl(boolean startValue, boolean endValue)

Method Detail

getStyleablePropertyback to summary
public StyleableProperty<?> getStyleableProperty()

Implements abstract com.sun.javafx.css.TransitionMediator.getStyleableProperty.

Doc from com.sun.javafx.css.TransitionMediator.getStyleableProperty.

Returns the styleable property targeted by the transition.

Annotations
@Override
onStopback to summary
public void onStop()

Implements abstract com.sun.javafx.css.TransitionMediator.onStop.

Doc from com.sun.javafx.css.TransitionMediator.onStop.

Occurs when the timer has stopped and the mediator should be discarded. Derived classes should implement this method to clear any references to this mediator.

Annotations
@Override
onUpdateback to summary
public void onUpdate(double progress)

Implements abstract com.sun.javafx.css.TransitionMediator.onUpdate.

Doc from com.sun.javafx.css.TransitionMediator.onUpdate.

Derived classes should implement this method to compute a new intermediate value based on the current progress, and update the StyleableProperty accordingly.

Annotations
@Override
updateReversingAdjustedStartValueback to summary
public boolean updateReversingAdjustedStartValue(TransitionMediator existingMediator)

Implements abstract com.sun.javafx.css.TransitionMediator.updateReversingAdjustedStartValue.

Doc from com.sun.javafx.css.TransitionMediator.updateReversingAdjustedStartValue.

Derived classes must implement the following protocol:

  1. If the reversing-adjusted start value of the existing transition is equal to the end value of this transition: Set the reversing-adjusted start value of this transition to the end value of the existing transition and return true.
  2. Otherwise, return false.
Refer to Starting of transitions for more information about the reversing-adjusted start value.
Annotations
@Override