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
An
Animation
used to enlarge the popup into view.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
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 Details
-
ResizeAnimation
Create a newPopupPanel.ResizeAnimation
.- Parameters:
panel
- the panel to affect
-
-
Method Details
-
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()
.
-