You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by do...@apache.org on 2004/09/28 05:40:06 UTC

svn commit: rev 47381 - incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html

Author: dolander
Date: Mon Sep 27 20:40:05 2004
New Revision: 47381

Modified:
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlConstants.java
Log:
Add the bgcolor attribute to the Body tag.




Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java	Mon Sep 27 20:40:05 2004
@@ -99,22 +99,41 @@
     }
 
     /**
-     * Sets the background color of the page.
-     * @param background - the background color of the page.
+     * Sets the background image of the page.
+     * @param background - the background image of the page.
      * @jsptagref.attributedescription
-     * The background color of the page.
+     * The background image of the page.
      *
      * @jsptagref.databindable false
      *
      * @jsptagref.attributesyntaxvalue <i>string_background</i>
      *
      * @netui:attribute required="false"  rtexprvalue="true"
-     * description="The background color of the page."
+     * description="The background image of the page."
      * @netui.tldx:attribute category="misc"
      */
     public void setBackground(String background)
     {
         _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, BACKGROUND, background);
+    }
+
+    /**
+     * Sets the bgcolor of the page.
+     * @param bgcolor - the background color of the page.
+     * @jsptagref.attributedescription
+     * The background color of the page.
+     *
+     * @jsptagref.databindable false
+     *
+     * @jsptagref.attributesyntaxvalue <i>string_bgcolor</i>
+     *
+     * @netui:attribute required="false"  rtexprvalue="true"
+     * description="The background color of the page."
+     * @netui.tldx:attribute category="misc"
+     */
+    public void setBgcolor(String bgcolor)
+    {
+        _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, BGCOLOR, bgcolor);
     }
 
     /**

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlConstants.java
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlConstants.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlConstants.java	Mon Sep 27 20:40:05 2004
@@ -181,6 +181,11 @@
     static final String BACKGROUND = "background";
 
     /**
+     * The name of the <code>bgcolor</code> attribute.
+     */
+    static final String BGCOLOR = "bgcolor";
+
+    /**
      * The name of the <code>border</code> attribute.
      */
     static final String BORDER = "border";