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/03/24 20:32:03 UTC
svn commit: r757975 -
/incubator/click/trunk/click/framework/src/org/apache/click/element/Element.java
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);
- }
- }
}