Top Description Inners Fields Constructors Methods
javafx.css

public abstract Class StyleableLongProperty

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

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private StyleableLongProperty.TransitionMediatorImpl
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableLongProperty()

The constructor of the StyleableLongProperty.

public
StyleableLongProperty(long
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableLongProperty.

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin origin, Number 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 Number> observable)

Overrides javafx.beans.property.LongPropertyBase.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.LongPropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

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

Constructor Detail

StyleableLongPropertyback to summary
public StyleableLongProperty()

The constructor of the StyleableLongProperty.

StyleableLongPropertyback to summary
public StyleableLongProperty(long initialValue)

The constructor of the StyleableLongProperty.

Parameters
initialValue:long

the initial value of the wrapped Object

Method Detail

applyStyleback to summary
public void applyStyle(StyleOrigin origin, Number 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 Number> observable)

Overrides javafx.beans.property.LongPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Doc from javafx.beans.property.LongPropertyBase.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.

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(long v)

Overrides javafx.beans.property.LongPropertyBase.set.

Implements javafx.beans.value.WritableLongValue.set.

Doc from javafx.beans.property.LongPropertyBase.set.

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

Annotations
@Override
javafx.css back to summary

private final Class StyleableLongProperty.TransitionMediatorImpl

extends TransitionMediator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final long
private long
private final long

Constructor Summary

AccessConstructor and Description
public
TransitionMediatorImpl(long startValue, long 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 long endValue
reversingAdjustedStartValueback to summary
private long reversingAdjustedStartValue
startValueback to summary
private final long startValue

Constructor Detail

TransitionMediatorImplback to summary
public TransitionMediatorImpl(long startValue, long 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