Fixes checkstyle errors in LayoutCommand, along with misnaming of fields in [Dock]LayoutPanel. git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6635 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java b/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java index b339f15..40c5525 100644 --- a/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java +++ b/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
@@ -85,7 +85,7 @@ private final Unit unit; private Widget center; private final Layout layout; - private final LayoutCommand animCmd; + private final LayoutCommand layoutCmd; /** * Creates an empty dock panel. @@ -97,7 +97,7 @@ setElement(Document.get().createDivElement()); layout = new Layout(getElement()); - animCmd = new DockAnimateCommand(layout); + layoutCmd = new DockAnimateCommand(layout); } /** @@ -156,11 +156,11 @@ } public void animate(int duration, final Layout.AnimationCallback callback) { - animCmd.schedule(duration, callback); + layoutCmd.schedule(duration, callback); } public void forceLayout() { - animCmd.cancel(); + layoutCmd.cancel(); doLayout(); layout.layout(); onResize();
diff --git a/user/src/com/google/gwt/user/client/ui/LayoutCommand.java b/user/src/com/google/gwt/user/client/ui/LayoutCommand.java index 8605873..5c542ab 100644 --- a/user/src/com/google/gwt/user/client/ui/LayoutCommand.java +++ b/user/src/com/google/gwt/user/client/ui/LayoutCommand.java
@@ -38,7 +38,7 @@ private final Layout layout; /** - * Creates a new command for the given layout object + * Creates a new command for the given layout object. * * @param layout */
diff --git a/user/src/com/google/gwt/user/client/ui/LayoutPanel.java b/user/src/com/google/gwt/user/client/ui/LayoutPanel.java index 452c0db..d9b5705 100644 --- a/user/src/com/google/gwt/user/client/ui/LayoutPanel.java +++ b/user/src/com/google/gwt/user/client/ui/LayoutPanel.java
@@ -48,7 +48,7 @@ RequiresResize, ProvidesResize { private final Layout layout; - private final LayoutCommand animCmd; + private final LayoutCommand layoutCmd; /** * Creates an empty layout panel. @@ -56,7 +56,7 @@ public LayoutPanel() { setElement(Document.get().createDivElement()); layout = new Layout(getElement()); - animCmd = new LayoutCommand(layout); + layoutCmd = new LayoutCommand(layout); } /** @@ -80,11 +80,11 @@ } public void animate(final int duration, final AnimationCallback callback) { - animCmd.schedule(duration, callback); + layoutCmd.schedule(duration, callback); } public void forceLayout() { - animCmd.cancel(); + layoutCmd.cancel(); layout.layout(); onResize(); }