/[Apache-SVN]/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectBooleanCheckboxRenderer.java
ViewVC logotype

Diff of /incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectBooleanCheckboxRenderer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectBooleanCheckboxRenderer.java	2006/02/04 21:44:01	374935
+++ incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectBooleanCheckboxRenderer.java	2006/02/04 21:47:46	374936
@@ -1,23 +1,25 @@
+package org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag;
+
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
- * 
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- * 
- *        http://www.apache.org/licenses/LICENSE-2.0
- * 
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
+
 /*
  * Created 07.02.2003 16:00:00.
  * $Id$
  */
-package org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag;
 
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DISABLED;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_INLINE;
@@ -42,7 +44,8 @@ public class SelectBooleanCheckboxRender
 
     UIInput uiInput = (UIInput) component;
 
-    String newValue = (String)facesContext.getExternalContext().getRequestParameterMap()
+    String newValue = (String)
+        facesContext.getExternalContext().getRequestParameterMap()
         .get(uiInput.getClientId(facesContext));
 //    LogUtils.logParameter(((ServletRequest)facesContext.getExternalContext().getRequest()));
 //    LOG.debug("decode: key='" + uiInput.getClientId(facesContext)
@@ -66,7 +69,7 @@ public class SelectBooleanCheckboxRender
 
     boolean inline = ComponentUtil.getBooleanAttribute(component, ATTR_INLINE);
 
-    if (label != null && ! inline) {
+    if (label != null && !inline) {
 
       writer.startElement("table", component);
       writer.writeAttribute("border", "0", null);
@@ -79,7 +82,7 @@ public class SelectBooleanCheckboxRender
       writer.startElement("td", null);
     }
 
-    Boolean currentValue = (Boolean)component.getValue();
+    Boolean currentValue = (Boolean) component.getValue();
     boolean checked = currentValue != null ? currentValue.booleanValue() : false;
 
     writer.startElement("input", component);
@@ -94,7 +97,7 @@ public class SelectBooleanCheckboxRender
     writer.writeAttribute("title", null, ATTR_TIP);
     writer.endElement("input");
 
-    if (label != null && ! inline) {
+    if (label != null && !inline) {
       writer.endElement("td");
       writer.startElement("td", null);
       writer.writeText("", null);
@@ -104,16 +107,11 @@ public class SelectBooleanCheckboxRender
       RenderUtil.encode(facesContext, label);
     }
 
-    if (label != null && ! inline) {
+    if (label != null && !inline) {
       writer.endElement("td");
       writer.endElement("tr");
       writer.endElement("table");
     }
-
-
   }
-
-// ///////////////////////////////////////////// bean getter + setter
-
 }
 

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26