You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/04/20 14:56:17 UTC

svn commit: r766676 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java

Author: lofwyr
Date: Mon Apr 20 12:56:17 2009
New Revision: 766676

URL: http://svn.apache.org/viewvc?rev=766676&view=rev
Log:
Code style: add Override Annotation

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java?rev=766676&r1=766675&r2=766676&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java Mon Apr 20 12:56:17 2009
@@ -49,15 +49,18 @@
 
   private static final Log LOG = LogFactory.getLog(PanelRenderer.class);
 
+  @Override
   public void prepareRender(FacesContext facesContext, UIComponent component) throws IOException {
     super.prepareRender(facesContext, component);
     HtmlRendererUtil.renderDojoDndSource(facesContext, component);
   }
 
+  @Override
   public boolean getRendersChildren() {
     return true;
   }
 
+  @Override
   public int getFixedHeight(FacesContext facesContext, UIComponent component) {
     // wenn hoehe gesetzt dann diese,
     // sonst wenn layout vorhanden dieses fragen:
@@ -117,6 +120,7 @@
     return height;
   }
 
+  @Override
   public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException {
     UIPanel component = (UIPanel) uiComponent;
     for (Object o : component.getChildren()) {
@@ -125,6 +129,7 @@
     }
   }
 
+  @Override
   public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
     String clientId = component.getClientId(facesContext);
     TobagoResponseWriter writer = HtmlRendererUtil.getTobagoResponseWriter(facesContext);
@@ -134,7 +139,7 @@
     writer.writeIdAttribute(clientId);
     writer.writeStyleAttribute();
     if (TobagoConfig.getInstance(facesContext).isAjaxEnabled()) {
-     // writer.writeJavascript("Tobago.addAjaxComponent(\"" + clientId + "\")");
+      // writer.writeJavascript("Tobago.addAjaxComponent(\"" + clientId + "\")");
       Integer frequency = null;
       UIComponent facetReload = component.getFacet(Facets.RELOAD);
       if (facetReload != null && facetReload instanceof UIReload && facetReload.isRendered()) {
@@ -145,21 +150,22 @@
         frequency = 0;
       }
       final String[] cmds = {
-         "new Tobago.Panel(\"" + clientId + "\", " + true + ", "+ frequency + ");"
+          "new Tobago.Panel(\"" + clientId + "\", " + true + ", " + frequency + ");"
       };
 
       HtmlRendererUtil.writeScriptLoader(facesContext, null, cmds);
     }
   }
 
+  @Override
   public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
     ResponseWriter writer = facesContext.getResponseWriter();
     writer.endElement(HtmlConstants.DIV);
   }
 
+  @Override
   public void encodeAjax(FacesContext facesContext, UIComponent component) throws IOException {
     AjaxUtils.checkParamValidity(facesContext, component, UIPanel.class);
     component.encodeChildren(facesContext);
   }
 }
-