public class TransitionScheduler extends Object
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static interface |
TransitionScheduler.ITransitionEndListener |
Represents the listener for monitoring the end of a transition.
|
| 构造器 | 说明 |
|---|---|
TransitionScheduler() |
Default constructor used to create a
TransitionScheduler instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
setTransition(Transition transition) |
Sets a transition for the scheduler.
|
void |
setTransitionEndListener(TransitionScheduler.ITransitionEndListener listener) |
Sets a listener for the transition scheduler to monitor the end of a transition.
|
void |
startNewRootTransition(ComponentContainer oldRoot,
ComponentContainer newRoot) |
Starts a transition in response to the switching from an old component to the new component.
|
void |
startTransition(TransitionComponents components) |
Starts the transition.
|
public TransitionScheduler()
TransitionScheduler instance.
This constructor is targeted at the scheduler of a transition.
public void setTransition(Transition transition)
transition - Indicates the transition to set for the scheduler.public void startTransition(TransitionComponents components)
components - Indicates the end component of the transition.public void startNewRootTransition(ComponentContainer oldRoot, ComponentContainer newRoot)
oldRoot - Indicates the old component.newRoot - Indicates the new component.public void setTransitionEndListener(TransitionScheduler.ITransitionEndListener listener)
listener - Indicates the listener to set.