You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/05/08 20:13:16 UTC

svn commit: r773057 - in /incubator/click/trunk/click/framework/src/org/apache/click: control/AbstractLink.java control/Panel.java element/CssStyle.java element/JsScript.java

Author: sabob
Date: Fri May  8 18:13:15 2009
New Revision: 773057

URL: http://svn.apache.org/viewvc?rev=773057&view=rev
Log:
docs and formatting changes

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java
    incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java
    incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java
    incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java?rev=773057&r1=773056&r2=773057&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java Fri May  8 18:13:15 2009
@@ -72,17 +72,6 @@
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Return the links html tag: <tt>a</tt>.
-     *
-     * @see AbstractControl#getTag()
-     *
-     * @return this controls html tag
-     */
-    public String getTag() {
-        return "a";
-    }
-
-    /**
      * Create an AbstractLink for the given name.
      *
      * @param name the page link name
@@ -103,6 +92,17 @@
     // ------------------------------------------------------ Public Attributes
 
     /**
+     * Return the link html tag: <tt>a</tt>.
+     *
+     * @see AbstractControl#getTag()
+     *
+     * @return this controls html tag
+     */
+    public String getTag() {
+        return "a";
+    }
+
+    /**
      * Return true if the AbstractLink is a disabled.  If the link is disabled
      * it will be rendered as &lt;span&gt; element with a HTML class attribute
      * of "disabled".

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java?rev=773057&r1=773056&r2=773057&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java Fri May  8 18:13:15 2009
@@ -289,13 +289,13 @@
      * Create a Panel with the given name, id attribute and template path.
      *
      * @param name the name of the panel
-     * @param template the template path
      * @param id the id HTML attribute value
+     * @param template the template path
      */
     public Panel(String name, String id, String template) {
         setName(name);
-        setTemplate(template);
         setId(id);
+        setTemplate(template);
     }
 
     /**

Modified: incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java?rev=773057&r1=773056&r2=773057&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java Fri May  8 18:13:15 2009
@@ -348,6 +348,8 @@
 
         buffer.closeTag();
 
+        buffer.append("\n");
+
         // Render CDATA tag if necessary
         renderCharacterDataPrefix(buffer);
 
@@ -355,6 +357,8 @@
 
         renderCharacterDataSuffix(buffer);
 
+        buffer.append("\n");
+
         buffer.elementEnd(getTag());
 
         renderConditionalCommentSuffix(buffer);

Modified: incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java?rev=773057&r1=773056&r2=773057&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java Fri May  8 18:13:15 2009
@@ -348,6 +348,8 @@
 
         buffer.closeTag();
 
+        buffer.append("\n");
+
         // Render CDATA tag if necessary
         renderCharacterDataPrefix(buffer);
 
@@ -355,6 +357,8 @@
 
         renderCharacterDataSuffix(buffer);
 
+        buffer.append("\n");
+
         buffer.elementEnd(getTag());
 
         renderConditionalCommentSuffix(buffer);