Package com.google.gwt.user.client.ui
Class PopupPanel.ResizeAnimation
- java.lang.Object
-
- com.google.gwt.animation.client.Animation
-
- com.google.gwt.user.client.ui.PopupPanel.ResizeAnimation
-
- Enclosing class:
- PopupPanel
static class PopupPanel.ResizeAnimation extends Animation
AnAnimation
used to enlarge the popup into view.
-
-
Constructor Summary
Constructors Constructor Description ResizeAnimation(PopupPanel panel)
Create a newPopupPanel.ResizeAnimation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
setState(boolean showing, boolean isUnloading)
Open or close the content.
-
-
-
Constructor Detail
-
ResizeAnimation
public ResizeAnimation(PopupPanel panel)
Create a newPopupPanel.ResizeAnimation
.- Parameters:
panel
- the panel to affect
-
-
Method Detail
-
setState
public void setState(boolean showing, boolean isUnloading)
Open or close the content. This method always called immediately after the PopupPanel showing state has changed, so we base the animation on the current state.- Parameters:
showing
- true if the popup is showing, false if not
-
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()
.
-
-