/[Apache-SVN]/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/RichTextEditorRenderer.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/RichTextEditorRenderer.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/RichTextEditorRenderer.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/RichTextEditorRenderer.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 org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -59,8 +61,6 @@ import java.io.IOException;
 /** TODO: under construction */
 public class RichTextEditorRenderer extends InputRendererBase {
 
-// ///////////////////////////////////////////// constant
-
   private static final Log LOG = LogFactory.getLog(RichTextEditorRenderer.class);
 
   public static final String CHANGE_BUTTON = "togleState";
@@ -73,15 +73,15 @@ public class RichTextEditorRenderer exte
     super.decode(facesContext, component);
     String actionId = ComponentUtil.findPage(component).getActionId();
     if (actionId != null
-        && actionId.equals(component.getClientId(facesContext) + CHANGE_BUTTON)){
+        && actionId.equals(component.getClientId(facesContext) + CHANGE_BUTTON)) {
       boolean state
           = ComponentUtil.getBooleanAttribute(component, ATTR_STATE_PREVIEW);
       component.getAttributes().put(ATTR_STATE_PREVIEW,
-          new Boolean(! state));
+          new Boolean(!state));
       facesContext.renderResponse();
 
     }
-    ((EditableValueHolder)component).setValid(true);
+    ((EditableValueHolder) component).setValid(true);
   }
 
   public static String contentToHtml(String content) {
@@ -149,8 +149,7 @@ public class RichTextEditorRenderer exte
       writer.write(RichTextEditorRenderer.contentToHtml(content));
 
       writer.endElement("div");
-    }
-    else {
+    } else {
       writer.startElement("textarea", component);
       writer.writeClassAttribute(classes + " tobago-richTextEditor-body");
       writer.writeNameAttribute(clientId);

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26