Author: Alex.Kolonitsky
Date: 2010-04-20 12:29:38 -0400 (Tue, 20 Apr 2010)
New Revision: 16782
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/context/PreRenderViewListener.java
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/ComboBoxButtonPressGradient.java
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/InputErrorIcon.java
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/OneColorBasedResource.java
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerButtonGradient.java
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerFieldGradient.java
Log:
fix checkstyle
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/context/PreRenderViewListener.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/context/PreRenderViewListener.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/context/PreRenderViewListener.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -45,11 +45,11 @@
private static final String ENABLE = "enable";
- private static final String _CLASSES_ECSS = "_classes.ecss";
+ private static final String CLASSES_ECSS = "_classes.ecss";
private static final String ECSS = ".ecss";
- private static final String _BOTH_ECSS = "_both.ecss";
+ private static final String BOTH_ECSS = "_both.ecss";
private static final String HEAD = "head";
@@ -133,13 +133,13 @@
if (useStdControlsSkinning) {
if (useStdControlsSkinningClasses) {
- resourceSuffix = _BOTH_ECSS;
+ resourceSuffix = BOTH_ECSS;
} else {
resourceSuffix = ECSS;
}
} else {
if (useStdControlsSkinningClasses) {
- resourceSuffix = _CLASSES_ECSS;
+ resourceSuffix = CLASSES_ECSS;
} else {
// no resources
}
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/ComboBoxButtonPressGradient.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/ComboBoxButtonPressGradient.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/ComboBoxButtonPressGradient.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -27,10 +27,10 @@
* @author Anton Belevich
* @since 3.2.0
*/
-public class ComboBoxButtonPressGradient extends BaseGradient{
-
- public ComboBoxButtonPressGradient() {
- super(7,15 , 9, Skin.HEADER_BACKGROUND_COLOR, "headerGradientColor");
- }
+public class ComboBoxButtonPressGradient extends BaseGradient {
+ public ComboBoxButtonPressGradient() {
+ super(7, 15, 9, Skin.HEADER_BACKGROUND_COLOR, "headerGradientColor");
+ }
+
}
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/InputErrorIcon.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/InputErrorIcon.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/InputErrorIcon.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -20,13 +20,10 @@
*/
package org.richfaces.renderkit.html.images;
-import java.awt.Dimension;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
import org.ajax4jsf.resource.ResourceContext;
+import java.awt.*;
+
public class InputErrorIcon extends OneColorBasedResource {
public InputErrorIcon() {
@@ -34,7 +31,7 @@
}
/**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
+ * @see org.ajax4jsf.resource.Java2Dresource#paint(ResourceContext, Graphics2D)
*/
protected void paint(ResourceContext context, Graphics2D g2d) {
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/OneColorBasedResource.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/OneColorBasedResource.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/OneColorBasedResource.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -21,14 +21,11 @@
package org.richfaces.renderkit.html.images;
-import java.awt.Color;
-import java.awt.Dimension;
-
-import javax.faces.context.FacesContext;
-
import org.ajax4jsf.resource.Java2Dresource;
import org.ajax4jsf.resource.ResourceContext;
+import java.awt.*;
+
public abstract class OneColorBasedResource extends Java2Dresource {
private Dimension dimension;
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerButtonGradient.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerButtonGradient.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerButtonGradient.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -24,7 +24,7 @@
import org.richfaces.renderkit.html.BaseGradient;
public class SpinnerButtonGradient extends BaseGradient {
- public SpinnerButtonGradient() {
- super(30, 50, 20, "headerGradientColor", "headerBackgroundColor");
- }
+ public SpinnerButtonGradient() {
+ super(30, 50, 20, "headerGradientColor",
"headerBackgroundColor");
+ }
}
Modified:
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerFieldGradient.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerFieldGradient.java 2010-04-20
16:24:24 UTC (rev 16781)
+++
root/framework/trunk/impl/src/main/java/org/richfaces/renderkit/html/images/SpinnerFieldGradient.java 2010-04-20
16:29:38 UTC (rev 16782)
@@ -25,9 +25,7 @@
public class SpinnerFieldGradient extends BaseGradient {
- public SpinnerFieldGradient() {
- super(30, 50, 12, "additionalBackgroundColor",
"controlBackgroundColor");
- }
-
-
+ public SpinnerFieldGradient() {
+ super(30, 50, 12, "additionalBackgroundColor",
"controlBackgroundColor");
+ }
}