click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r757975 - /incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java
Date Tue, 24 Mar 2009 19:32:03 GMT
Author: sabob
Date: Tue Mar 24 19:32:01 2009
New Revision: 757975

URL: http://svn.apache.org/viewvc?rev=757975&view=rev
Log:
appendAttributes should be protected

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java?rev=757975&r1=757974&r2=757975&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java Tue Mar
24 19:32:01 2009
@@ -26,7 +26,7 @@
 /**
  * Provides a base class for rendering HTML elements, for example
  * JavaScript (<script>) and Cascading Stylesheets
- * (<link>/<style>).
+ * (<link> / <style>).
  * <p/>
  * Subclasses should override {@link #getTag()} to return a specific HTML tag.
  *
@@ -185,6 +185,19 @@
         return buffer.toString();
     }
 
+    // ------------------------------------------------------ Protected Methods
+
+    /**
+     * Append all the Element attributes to the specified buffer.
+     *
+     * @param buffer the specified buffer to append all the attributes
+     */
+    protected void appendAttributes(HtmlStringBuffer buffer) {
+        if (hasAttributes()) {
+            buffer.appendAttributes(attributes);
+        }
+    }
+
     // ------------------------------------------------ Package Private Methods
 
     /**
@@ -245,15 +258,4 @@
         }
         return size;
     }
-
-    /**
-     * Append all the Element attributes to the specified buffer.
-     *
-     * @param buffer the specified buffer to append all the attributes
-     */
-    void appendAttributes(HtmlStringBuffer buffer) {
-        if (hasAttributes()) {
-            buffer.appendAttributes(attributes);
-        }
-    }
 }



Mime
View raw message