public class LayoutCommand extends Object implements Scheduler.ScheduledCommand
Note: This class assumes that Layer.getUserObject()
will
return the widget associated with a given layer.
Constructor and Description |
---|
LayoutCommand(Layout layout)
Creates a new command for the given layout object.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels this command.
|
protected void |
doBeforeLayout()
Called before the layout is executed.
|
void |
execute()
Invokes the command.
|
void |
schedule(int duration,
Layout.AnimationCallback callback)
Schedules a layout.
|
public LayoutCommand(Layout layout)
layout
- public void cancel()
schedule(int, Layout.AnimationCallback)
will re-enable it.public final void execute()
Scheduler.ScheduledCommand
execute
in interface Scheduler.ScheduledCommand
public void schedule(int duration, Layout.AnimationCallback callback)
duration
- callback
- protected void doBeforeLayout()
Copyright © 2018. All rights reserved.