public class

LayoutCommand

extends Object
implements Scheduler.ScheduledCommand
java.lang.Object
   ↳ com.google.gwt.user.client.ui.LayoutCommand

Class Overview

A scheduled command used by animated layouts to ensure that only layout is ever performed for a panel within a given user event.

Note: This class assumes that Layer.getUserObject() will return the widget associated with a given layer.

Summary

Public Constructors
LayoutCommand(Layout layout)
Creates a new command for the given layout object.
Public Methods
void cancel()
Cancels this command.
final void execute()
Invokes the command.
void schedule(int duration, Layout.AnimationCallback callback)
Schedules a layout.
Protected Methods
void doBeforeLayout()
Called before the layout is executed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.core.client.Scheduler.ScheduledCommand

Public Constructors

public LayoutCommand (Layout layout)

Creates a new command for the given layout object.

Public Methods

public void cancel ()

Cancels this command. A subsequent call to schedule(int, Layout.AnimationCallback) will re-enable it.

public final void execute ()

Invokes the command.

public void schedule (int duration, Layout.AnimationCallback callback)

Schedules a layout. The duration and callback passed to this method will supercede any previous call that has not yet been executed.

Protected Methods

protected void doBeforeLayout ()

Called before the layout is executed. Override this method to perform any work that needs to happen just before it.