Class CellTree.RevealAnimation
- java.lang.Object
-
- com.google.gwt.animation.client.Animation
-
- com.google.gwt.user.cellview.client.CellTree.NodeAnimation
-
- com.google.gwt.user.cellview.client.CellTree.RevealAnimation
-
- Direct Known Subclasses:
CellTree.SlideAnimation
- Enclosing class:
- CellTree
public static class CellTree.RevealAnimation extends CellTree.NodeAnimation
ACellTree.NodeAnimation
that reveals the contents of child nodes.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Element
contentContainer
The container that holds the content, includind the children.(package private) int
height
The target height when opening, the start height when closing.(package private) boolean
opening
True if the node is opening, false if closing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
animate(CellTreeNodeView<?> node, boolean isAnimationEnabled)
Animate aCellTreeNodeView
into its new state.static CellTree.RevealAnimation
create()
Create a newCellTree.RevealAnimation
.protected void
onComplete()
Called immediately after the animation completes.protected void
onStart()
Called immediately before the animation starts.protected void
onUpdate(double progress)
Called when the animation should be updated.-
Methods inherited from class com.google.gwt.user.cellview.client.CellTree.NodeAnimation
getDuration, setDuration
-
-
-
-
Field Detail
-
contentContainer
Element contentContainer
The container that holds the content, includind the children.
-
height
int height
The target height when opening, the start height when closing.
-
opening
boolean opening
True if the node is opening, false if closing.
-
-
Method Detail
-
create
public static CellTree.RevealAnimation create()
Create a newCellTree.RevealAnimation
.- Returns:
- the new animation
-
onComplete
protected void onComplete()
Description copied from class:Animation
Called immediately after the animation completes.- Overrides:
onComplete
in classAnimation
-
onStart
protected void onStart()
Description copied from class:Animation
Called immediately before the animation starts.
-
onUpdate
protected void onUpdate(double progress)
Description copied from class:Animation
Called when the animation should be updated. The value of progress is between 0.0 and 1.0 (inclusive) (unless you override theAnimation.interpolate(double)
method to provide a wider range of values). There is no guarantee thatAnimation.onUpdate(double)
is called with 0.0 or 1.0. If you need to perform setup or tear down procedures, you can overrideAnimation.onStart()
andAnimation.onComplete()
.
-
animate
void animate(CellTreeNodeView<?> node, boolean isAnimationEnabled)
Animate aCellTreeNodeView
into its new state.- Specified by:
animate
in classCellTree.NodeAnimation
- Parameters:
node
- theCellTreeNodeView
to animateisAnimationEnabled
- true to animate
-
-