Revision: 6631 Author: rj...@google.com Date: Tue Nov 3 20:12:52 2009 Log: Checkstyle fix in LayoutCommand tbr jgw http://code.google.com/p/google-web-toolkit/source/detail?r=6631
Modified: /trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java ======================================= --- /trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java Tue Nov 3 14:14:13 2009 +++ /trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java Tue Nov 3 20:12:52 2009 @@ -45,6 +45,15 @@ public LayoutCommand(Layout layout) { this.layout = layout; } + + /** + * Cancels this command. A subsequent call to + * {...@link #schedule(int, AnimationCallback)} will re-enable it. + */ + public void cancel() { + // There's no way to "unschedule" a command, so we use a canceled flag. + canceled = true; + } public final void execute() { if (canceled) { @@ -78,13 +87,6 @@ } }); } - - /** - * Called before the layout is executed. Override this method to perform any - * work that needs to happen just before it. - */ - protected void doBeforeLayout() { - } /** * Schedules a layout. The duration and callback passed to this method will @@ -105,11 +107,9 @@ } /** - * Cancels this command. A subsequent call to - * {...@link #schedule(int, AnimationCallback)} will re-enable it. + * Called before the layout is executed. Override this method to perform any + * work that needs to happen just before it. */ - public void cancel() { - // There's no way to "unschedule" a command, so we use a canceled flag. - canceled = true; + protected void doBeforeLayout() { } } --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---