click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r902359 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java
Date Sat, 23 Jan 2010 07:27:39 GMT
Author: sabob
Date: Sat Jan 23 07:27:38 2010
New Revision: 902359

URL: http://svn.apache.org/viewvc?rev=902359&view=rev
Log:
added width and height support. CLK-616

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java?rev=902359&r1=902358&r2=902359&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/tree/Tree.java Sat Jan
23 07:27:38 2010
@@ -448,6 +448,55 @@
     }
 
     /**
+     * Return the CSS "width" style attribute of the tree, or null if not
+     * defined.
+     *
+     * @return the CSS "width" style attribute of the tree, or null if not
+     * defined
+     */
+    public String getWidth() {
+        return getStyle("width");
+    }
+
+    /**
+     * Set the the CSS "width" style attribute of the tree. For example:
+     *
+     * <pre class="prettyprint">
+     * Tree tree = new Tree("mytree");
+     * tree.setWidth("200px");
+     * </pre>
+     *
+     * @param value the CSS "width" style attribute
+     */
+    public void setWidth(String value) {
+        setStyle("width", value);
+    }
+
+    /**
+     * Return the CSS "height" style of the tree, or null if not defined.
+     *
+     * @return the CSS "height" style attribute of the tree, or null if not
+     * defined
+     */
+    public String getHeight() {
+        return getStyle("height");
+    }
+
+    /**
+     * Set the the CSS "height" style attribute of the tree. For example:
+     *
+     * <pre class="prettyprint">
+     * Tree tree = new Tree("mytree");
+     * tree.setHeight("200px");
+     * </pre>
+     *
+     * @param value the CSS "height" style attribute
+     */
+    public void setHeight(String value) {
+        setStyle("height", value);
+    }
+
+    /**
      * Return the Tree HTML head imports statements for the following
      * resources:
      * <p/>



Mime
View raw message