You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2006/01/28 11:46:43 UTC

svn commit: r373126 - in /incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago: ajax/api/ context/ taglib/component/ taglib/decl/ util/

Author: bommel
Date: Sat Jan 28 02:46:16 2006
New Revision: 373126

URL: http://svn.apache.org/viewcvs?rev=373126&view=rev
Log:
checkstyle

Modified:
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxComponent.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoResourceBundle.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/CalendarTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuSelectOneTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/PanelTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ProgressTagDeclaration.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasHeight.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/XmlUtils.java

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxComponent.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxComponent.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxComponent.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxComponent.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.ajax.api;
 /**
  * Copyright 2004 The Apache Software Foundation.
  *
@@ -13,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.myfaces.tobago.ajax.api;
 
 import javax.faces.context.FacesContext;
 import java.io.IOException;
@@ -25,9 +25,8 @@
  * @version $Revision: $ $Date: $
  *          <p/>
  */
-public interface AjaxComponent
-{
-    public void encodeAjax(FacesContext context) throws IOException;
+public interface AjaxComponent {
+  void encodeAjax(FacesContext context) throws IOException;
 
-    public void processAjax(FacesContext context) throws IOException;
+  void processAjax(FacesContext context) throws IOException;
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoResourceBundle.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoResourceBundle.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoResourceBundle.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoResourceBundle.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.context;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -13,7 +14,6 @@
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
-package org.apache.myfaces.tobago.context;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/CalendarTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/CalendarTag.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/CalendarTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/CalendarTag.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.taglib.component;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -17,7 +18,6 @@
  * Created: Nov 20, 2002 11:30:31 PM
  * $Id$
  */
-package org.apache.myfaces.tobago.taglib.component;
 
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_VALUE;
 import org.apache.myfaces.tobago.component.ComponentUtil;
@@ -29,7 +29,6 @@
 public class CalendarTag extends TobagoTag implements CalendarTagDeclaration {
 
   private String value;
-
 
   public String getComponentType() {
     return UIOutput.COMPONENT_TYPE;

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuSelectOneTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuSelectOneTag.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuSelectOneTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuSelectOneTag.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.taglib.component;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -17,7 +18,6 @@
   * Created 14.09.2004 at 12:03:45.
   * $Id$
   */
-package org.apache.myfaces.tobago.taglib.component;
 
 import org.apache.myfaces.tobago.apt.annotation.Tag;
 import org.apache.myfaces.tobago.taglib.decl.HasAction;

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/PanelTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/PanelTag.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/PanelTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/PanelTag.java Sat Jan 28 02:46:16 2006
@@ -1,12 +1,13 @@
+package org.apache.myfaces.tobago.taglib.component;
 /*
  * 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.
@@ -14,10 +15,9 @@
  *    limitations under the License.
  */
 /*
-  * Created 28.04.2003 at 14:50:02.
-  * $Id$
-  */
-package org.apache.myfaces.tobago.taglib.component;
+ * Created 28.04.2003 at 14:50:02.
+ * $Id$
+ */
 
 import org.apache.myfaces.tobago.apt.annotation.Tag;
 import org.apache.myfaces.tobago.component.UIPanel;
@@ -32,11 +32,9 @@
 public class PanelTag extends TobagoBodyTag
     implements HasIdBindingAndRendered, HasDimension {
 
-
   public String getComponentType() {
     return UIPanel.COMPONENT_TYPE;
   }
-
 
 }
 

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ProgressTagDeclaration.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ProgressTagDeclaration.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ProgressTagDeclaration.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/ProgressTagDeclaration.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.taglib.component;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -13,7 +14,6 @@
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
-package org.apache.myfaces.tobago.taglib.component;
 
 import org.apache.myfaces.tobago.apt.annotation.BodyContent;
 import org.apache.myfaces.tobago.apt.annotation.Tag;
@@ -31,14 +31,14 @@
 /**
  * Renders a progressbar.
  */
-@Tag(name="progress", bodyContent= BodyContent.EMPTY)
-@UIComponentTag(UIComponent="javax.faces.component.UIOutput")
+@Tag(name = "progress", bodyContent = BodyContent.EMPTY)
+@UIComponentTag(UIComponent = "javax.faces.component.UIOutput")
 public interface ProgressTagDeclaration extends BeanTagDeclaration, HasIdBindingAndRendered, HasTip {
 
   /**
    * The current value of this component.
    */
   @TagAttribute
-  @UIComponentTagAttribute(type={"javax.swing.BoundedRangeModel"})
+  @UIComponentTagAttribute(type = { "javax.swing.BoundedRangeModel" } )
   void setValue(String value);
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectOneChoiceTag.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.taglib.component;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -17,7 +18,6 @@
  * Created: Aug 13, 2002 3:04:03 PM
  * $Id$
  */
-package org.apache.myfaces.tobago.taglib.component;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -28,26 +28,10 @@
 
   private static final Log LOG = LogFactory.getLog(SelectOneChoiceTag.class);
 
-//  public int doEndTag() throws JspException {
-
-//    UIComponent component = getComponentInstance();
-    // TODO remove this: use tx:
-//    if (component.getFacet(FACET_LAYOUT) == null) {
-//      UIComponent layout = ComponentUtil.createLabeledInputLayoutComponent();
-//      component.getFacets().put(FACET_LAYOUT, layout);
-//    }
-//    return super.doEndTag();
-//  }
-
   protected void setProperties(UIComponent component) {
     if (label != null) {
-      LOG.warn("the label attribute is deprecated in tc:selectOneChoice, " +
-          "please use tx:selectOneChoice instead.");
+      LOG.warn("the label attribute is deprecated in tc:selectOneChoice, please use tx:selectOneChoice instead.");
     }
     super.setProperties(component);
-  }
-
-  public void setRequired(String required) {
-    super.setRequired(required);
   }
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasHeight.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasHeight.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasHeight.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasHeight.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.taglib.decl;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -13,7 +14,6 @@
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
-package org.apache.myfaces.tobago.taglib.decl;
 
 import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
@@ -26,5 +26,5 @@
    *  The height for this component.
    */
   @TagAttribute @UIComponentTagAttribute()
-  public void setHeight(String height);
+  void setHeight(String height);
 }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/XmlUtils.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/XmlUtils.java?rev=373126&r1=373125&r2=373126&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/XmlUtils.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/XmlUtils.java Sat Jan 28 02:46:16 2006
@@ -1,3 +1,4 @@
+package org.apache.myfaces.tobago.util;
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  * 
@@ -13,7 +14,6 @@
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
-package org.apache.myfaces.tobago.util;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;