ObjectPropertyBase 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.ObjectProperty ,
that would otherwise be implemented as a ObjectPropertyBase,
styleable by CSS.
javafx.beans.property.ObjectPropertyBase , CssMetaData, StyleableProperty
| Modifier and Type | Class and Description |
|---|---|
| private class | StyleableObjectProperty.
Controller for component-wise transitions that aggregates the effects of its component transitions. |
| private class | StyleableObjectProperty.
the type of the sub-property U>Transition mediator for CSS sub-properties. |
| private class | StyleableObjectProperty.
Controller for transitions of non-interpolatable values using discrete interpolation. |
| private class | StyleableObjectProperty.
Controller for transitions of |
| private static interface | StyleableObjectProperty.
the property value type T>Common interface for transition controllers: |
| private abstract class | StyleableObjectProperty.
Base class for transition controllers that don't support component-wise transitions. |
| Modifier and Type | Field and Description |
|---|---|
| private StyleableObjectProperty. | |
| private StyleOrigin |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StyleableObjectProperty(T
the initial value of the wrapped initialValue)ObjectThe constructor of the |
| Modifier and Type | Method and Description |
|---|---|
| private void | applyComponents(T oldValue, T
the new value newValue, CssMetaData<? extends Styleable, T> the CSS metadata of the value metadata, SubPropertyConverter<T> the style converter of the value converter)Sets the value of the property, and potentially starts a transition. |
| public void | applyStyle(StyleOrigin origin, T newValue)
Implements javafx. This method is called from CSS code to set the value of the property. |
| private void | applyValue(T
the old value oldValue, T the new value newValue, CssMetaData<? extends Styleable, T> the CSS metadata of the value metadata)Sets the value of the property, and potentially starts a transition. |
| public void | bind(ObservableValue<? extends T> observable)
Overrides javafx. Implements javafx. Create a unidirection binding for this |
| private boolean | |
| public StyleOrigin | getStyleOrigin()
Implements javafx. Tells the origin of the value of the property. |
| private void | |
| private void | processComponent(StyleableObjectProperty<T>.
|
| public void | set(T v)
Overrides javafx. Implements javafx. Set the wrapped value. |
| controller | back to summary |
|---|---|
| private StyleableObjectProperty. | |
| origin | back to summary |
|---|---|
| private StyleOrigin origin | |
| StyleableObjectProperty | back to summary |
|---|---|
| public StyleableObjectProperty() The constructor of the | |
| StyleableObjectProperty | back to summary |
|---|---|
| public StyleableObjectProperty(T initialValue) The constructor of the
| |
| applyComponents | back to summary |
|---|---|
| private void applyComponents(T oldValue, T newValue, CssMetaData<? extends Styleable, T> metadata, SubPropertyConverter<T> converter) Sets the value of the property, and potentially starts a transition. This method is used for values that support component-wise transitions.
| |
| applyStyle | back to summary |
|---|---|
| public void applyStyle(StyleOrigin origin, T newValue) Implements javafx. Doc from javafx. This method is called from CSS code to set the value of the property.
| |
| applyValue | back to summary |
|---|---|
| private void applyValue(T oldValue, T newValue, CssMetaData<? extends Styleable, T> metadata) Sets the value of the property, and potentially starts a transition.
This method is used for values that don't support component-wise transitions, and for cases
where one of the values is
| |
| bind | back to summary |
|---|---|
| public void bind(ObservableValue<? extends T> observable) Overrides javafx. Implements javafx. Doc from javafx. Create a unidirection binding for this 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.
| |
| equalsEndValue | back to summary |
|---|---|
| private boolean equalsEndValue(Object value) | |
| getStyleOrigin | back to summary |
|---|---|
| public StyleOrigin getStyleOrigin() Implements javafx. Doc from javafx. Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.
| |
| onUserChange | back to summary |
|---|---|
| private void onUserChange() | |
| processComponent | back to summary |
|---|---|
private void processComponent(StyleableObjectProperty<T>.
| |
| set | back to summary |
|---|---|
| public void set(T v) Overrides javafx. Implements javafx. Doc from javafx. Set the wrapped value.
Should be equivalent to
| |
For each animation frame, this controller waits until all its component mediators have updated
their current value, and then converts the collected component values into a new object of type
T using the StyleConverter of this StyleableObjectProperty.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final List | |
| private final T | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public < the component value type U> void | addExistingMediator(StyleableObjectProperty<T>.
the existing component transition mediator mediatorAdds an existing component transition mediator to this controller. |
| public < the component value type U> void | addMediator(U
the old component value oldValue, U the new component value newValue, CssMetaData<? extends Styleable, ?> the component metadata metadata, TransitionDefinition the transition definition transition)Adds a new component transition mediator to this controller. |
| public void | addValue(CssMetaData<? extends Styleable, ?>
the metadata, Object CssMetaData of the componentthe new value value)Adds a component value to the value cache. |
| public void | |
| public T | |
| public void | onStop(StyleableObjectProperty<T>.
the component transition mediator mediatorThis method is called when a component transition mediator is stopped. |
| public void | onUpdate(CssMetaData<? extends Styleable, ?>
the metadata, Object CssMetaData of the componentthe new value value)This method is called when a component transition mediator updates its current value. |
| public void |
| cssValues | back to summary |
|---|---|
| private final Map<CssMetaData<? extends Styleable, ?>, Object> cssValues | |
| mediators | back to summary |
|---|---|
| private final List<StyleableObjectProperty<T>. | |
| newValue | back to summary |
|---|---|
| private final T newValue | |
| remainingValues | back to summary |
|---|---|
| private int remainingValues | |
| AggregatingTransitionController | back to summary |
|---|---|
| pack-priv AggregatingTransitionController(T newValue) | |
| addExistingMediator | back to summary |
|---|---|
| public <U> void addExistingMediator(StyleableObjectProperty<T>. Adds an existing component transition mediator to this controller. After calling this method, the existing mediator will be associated with this controller.
| |
| addMediator | back to summary |
|---|---|
| public <U> void addMediator(U oldValue, U newValue, CssMetaData<? extends Styleable, ?> metadata, TransitionDefinition transition) Adds a new component transition mediator to this controller.
| |
| addValue | back to summary |
|---|---|
| public void addValue(CssMetaData<? extends Styleable, ?> metadata, Object value) Adds a component value to the value cache.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements javafx.
| |
| getTargetValue | back to summary |
|---|---|
| public T getTargetValue() Implements javafx.
| |
| onStop | back to summary |
|---|---|
| public void onStop(StyleableObjectProperty<T>. This method is called when a component transition mediator is stopped.
| |
| onUpdate | back to summary |
|---|---|
| public void onUpdate(CssMetaData<? extends Styleable, ?> metadata, Object value) This method is called when a component transition mediator updates its current value.
When all component values have been collected, they are converted to an object of type
| |
| run | back to summary |
|---|---|
| public void run() Starts all transition timers managed by this controller. | |
This transition mediator does not interact with the StyleableObjectProperty directly,
but instead feeds its effects into the associated AggregatingTransitionController.
| Modifier and Type | Field and Description |
|---|---|
| private StyleableObjectProperty | |
| private final TransitionDefinition | |
| private final U | |
| private final CssMetaData | |
| private U | |
| private boolean | |
| private final U |
| Access | Constructor and Description |
|---|---|
| pack-priv | ComponentTransitionMediator(U startValue, U endValue, StyleableObjectProperty<T>.
|
| Modifier and Type | Method and Description |
|---|---|
| public StyleableProperty | getStyleableProperty()
Implements abstract com. Returns the styleable property targeted by the transition. |
| public void | onStop()
Implements abstract com. Occurs when the timer has stopped and the mediator should be discarded. |
| public void | onUpdate(double progress)
Implements abstract com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the |
| public void | |
| public boolean | updateReversingAdjustedStartValue(TransitionMediator existingMediator)
Implements abstract com. Derived classes must implement the following protocol:
|
| associatedController | back to summary |
|---|---|
| private StyleableObjectProperty<T>. | |
| definition | back to summary |
|---|---|
| private final TransitionDefinition definition | |
| endValue | back to summary |
|---|---|
| private final U endValue | |
| metadata | back to summary |
|---|---|
| private final CssMetaData<? extends Styleable, ?> metadata | |
| reversingAdjustedStartValue | back to summary |
|---|---|
| private U reversingAdjustedStartValue | |
| running | back to summary |
|---|---|
| private boolean running | |
| startValue | back to summary |
|---|---|
| private final U startValue | |
| ComponentTransitionMediator | back to summary |
|---|---|
| pack-priv ComponentTransitionMediator(U startValue, U endValue, StyleableObjectProperty<T>. | |
| getStyleableProperty | back to summary |
|---|---|
| public StyleableProperty Implements abstract com. Doc from com. Returns the styleable property targeted by the transition.
| |
| onStop | back to summary |
|---|---|
| public void onStop() Implements abstract com. Doc from com. 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.
| |
| onUpdate | back to summary |
|---|---|
| public void onUpdate(double progress) Implements abstract com. Doc from com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the
| |
| run | back to summary |
|---|---|
| public void run(long now) | |
| updateReversingAdjustedStartValue | back to summary |
|---|---|
| public boolean updateReversingAdjustedStartValue(TransitionMediator existingMediator) Implements abstract com. Doc from com. Derived classes must implement the following protocol:
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onUpdate(double progress)
Implements abstract com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the |
| DiscreteTransitionController | back to summary |
|---|---|
| pack-priv DiscreteTransitionController(T startValue, T endValue) | |
| onUpdate | back to summary |
|---|---|
| public void onUpdate(double progress) Implements abstract com. Doc from com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the
| |
Interpolatable values.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onUpdate(double progress)
Implements abstract com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the |
| InterpolatableTransitionController | back to summary |
|---|---|
| pack-priv InterpolatableTransitionController(T startValue, T endValue) | |
| onUpdate | back to summary |
|---|---|
| public void onUpdate(double progress) Implements abstract com. Doc from com. Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public T |
| cancel | back to summary |
|---|---|
| public void cancel() | |
| getTargetValue | back to summary |
|---|---|
| public T getTargetValue() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| private T | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public StyleableProperty | getStyleableProperty()
Implements abstract com. Returns the styleable property targeted by the transition. |
| public T | |
| public void | onStop()
Implements abstract com. Occurs when the timer has stopped and the mediator should be discarded. |
| public boolean | updateReversingAdjustedStartValue(TransitionMediator existingMediator)
Implements abstract com. Derived classes must implement the following protocol:
|
| endValue | back to summary |
|---|---|
| pack-priv final T endValue | |
| reversingAdjustedStartValue | back to summary |
|---|---|
| private T reversingAdjustedStartValue | |
| startValue | back to summary |
|---|---|
| pack-priv final T startValue | |
| TransitionControllerBase | back to summary |
|---|---|
| pack-priv TransitionControllerBase(T startValue, T endValue) | |
| getStyleableProperty | back to summary |
|---|---|
| public StyleableProperty Implements abstract com. Doc from com. Returns the styleable property targeted by the transition.
| |
| getTargetValue | back to summary |
|---|---|
| public T getTargetValue() Implements javafx.
| |
| onStop | back to summary |
|---|---|
| public void onStop() Implements abstract com. Doc from com. 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.
| |
| updateReversingAdjustedStartValue | back to summary |
|---|---|
| public boolean updateReversingAdjustedStartValue(TransitionMediator existingMediator) Implements abstract com. Doc from com. Derived classes must implement the following protocol:
| |