Fixing checkstyle problems.
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1117 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java
index 5616857..6c43a54 100644
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java
+++ b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java
@@ -39,6 +39,10 @@
public abstract Sink createInstance();
+ public String getColor() {
+ return "#2a8ebf";
+ }
+
public String getDescription() {
return description;
}
@@ -53,10 +57,6 @@
public String getName() {
return name;
}
-
- public String getColor() {
- return "#2a8ebf";
- }
}
/**
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java
index 2bb021f..10d05b3 100644
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java
+++ b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java
@@ -15,8 +15,6 @@
*/
package com.google.gwt.sample.kitchensink.client;
-import java.util.ArrayList;
-
import com.google.gwt.sample.kitchensink.client.Sink.SinkInfo;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
@@ -26,6 +24,8 @@
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;
+import java.util.ArrayList;
+
/**
* The left panel that contains all of the sinks, along with a short description
* of each.
@@ -106,6 +106,16 @@
}
}
+ private void colorSink(int index, boolean on) {
+ String color = "";
+ if (on) {
+ color = ((SinkInfo) sinks.get(index)).getColor();
+ }
+
+ Widget w = list.getWidget(index + 1);
+ DOM.setStyleAttribute(w.getElement(), "backgroundColor", color);
+ }
+
private void mouseOut(int index) {
if (index != selectedSink) {
colorSink(index, false);
@@ -129,14 +139,4 @@
colorSink(index, selected);
}
-
- private void colorSink(int index, boolean on) {
- String color = "";
- if (on) {
- color = ((SinkInfo) sinks.get(index)).getColor();
- }
-
- Widget w = list.getWidget(index + 1);
- DOM.setStyleAttribute(w.getElement(), "backgroundColor", color);
- }
}