-
public final class DelayAnimation extends Animation
An asynchronous delay that fires onFinished after given duration.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
running
private Function1<AnimationFinishedEvent, Unit>
onFinished
private final Integer
duration
-
Constructor Summary
Constructors Constructor Description DelayAnimation(Integer duration)
Creates a DelayAnimation with given duration.
-
Method Summary
Modifier and Type Method Description final Boolean
getRunning()
Boolean indicating whether the Animation is currently running. final Unit
setRunning(Boolean running)
Boolean indicating whether the Animation is currently running. final Function1<AnimationFinishedEvent, Unit>
getOnFinished()
Gets invoked when Animation has finished. final Unit
setOnFinished(Function1<AnimationFinishedEvent, Unit> onFinished)
Gets invoked when Animation has finished. final Integer
getDuration()
-
-
Constructor Detail
-
DelayAnimation
DelayAnimation(Integer duration)
Creates a DelayAnimation with given duration.- Parameters:
duration
- Duration in milliseconds.
-
-
Method Detail
-
getRunning
final Boolean getRunning()
-
setRunning
final Unit setRunning(Boolean running)
-
getOnFinished
final Function1<AnimationFinishedEvent, Unit> getOnFinished()
Gets invoked when Animation has finished.
-
setOnFinished
final Unit setOnFinished(Function1<AnimationFinishedEvent, Unit> onFinished)
Gets invoked when Animation has finished.
-
getDuration
final Integer getDuration()
-
-
-
-