Top Description Inners Fields Constructors Methods
javafx.css

public abstract Class StyleableIntegerProperty

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

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private StyleableIntegerProperty.TransitionMediatorImpl
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableIntegerProperty()

The constructor of the StyleableIntegerProperty.

public
StyleableIntegerProperty(int
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableIntegerProperty.

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin
the origin
origin
,
Number
the value
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>
The observable this Property should be bound to.
observable
)

Overrides javafx.beans.property.IntegerPropertyBase.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
set(int
The new value
v
)

Overrides javafx.beans.property.IntegerPropertyBase.set.

Implements javafx.beans.value.WritableIntegerValue.set.

Set the wrapped value.

Inherited from javafx.beans.property.IntegerPropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

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

Constructor Detail

StyleableIntegerPropertyback to summary
public StyleableIntegerProperty()

The constructor of the StyleableIntegerProperty.

StyleableIntegerPropertyback to summary
public StyleableIntegerProperty(int initialValue)

The constructor of the StyleableIntegerProperty.

Parameters
initialValue:int

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.

Parameters
origin:StyleOrigin

the origin

v:Number

the value

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

Overrides javafx.beans.property.IntegerPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

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

Parameters
observable:ObservableValue<? extends Number>

Doc from javafx.beans.property.Property.bind.

The observable this Property should be bound to.

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.

Returns:StyleOrigin

the style origin

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

Overrides javafx.beans.property.IntegerPropertyBase.set.

Implements javafx.beans.value.WritableIntegerValue.set.

Doc from javafx.beans.property.IntegerPropertyBase.set.

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

Parameters
v:int

Doc from javafx.beans.value.WritableIntegerValue.set.

The new value

Annotations
@Override
javafx.css back to summary

private final Class StyleableIntegerProperty.TransitionMediatorImpl

extends TransitionMediator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private int
private final int

Constructor Summary

AccessConstructor and Description
public
TransitionMediatorImpl(int startValue, int 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
the progress of the transition, ranging from 0 to 1
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
the mediator of the existing transition
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 int endValue
reversingAdjustedStartValueback to summary
private int reversingAdjustedStartValue
startValueback to summary
private final int startValue

Constructor Detail

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

Returns:StyleableProperty<?>

the styleable property

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.

Parameters
progress:double

the progress of the transition, ranging from 0 to 1

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.
Parameters
existingMediator:TransitionMediator

the mediator of the existing transition

Returns:boolean

true if the reversing-adjusted start value was updated, false otherwise

Annotations
@Override