Revision: 6635
Author: [email protected]
Date: Wed Nov 4 06:54:43 2009
Log: Fixes checkstyle errors in LayoutCommand, along with misnaming of
fields
in [Dock]LayoutPanel.
http://code.google.com/p/google-web-toolkit/source/detail?r=6635
Modified:
/trunk/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java
/trunk/user/src/com/google/gwt/user/client/ui/LayoutPanel.java
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java Tue
Nov 3 14:14:13 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java Wed
Nov 4 06:54:43 2009
@@ -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();
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java Tue
Nov 3 20:12:52 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/LayoutCommand.java Wed
Nov 4 06:54:43 2009
@@ -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
*/
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/LayoutPanel.java Tue Nov
3 14:14:13 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/LayoutPanel.java Wed Nov
4 06:54:43 2009
@@ -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();
}
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---