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 2005/08/04 18:19:28 UTC
svn commit: r227424 - in
/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree:
Tree.java TreePropertyOverride.java
Author: dolander
Date: Thu Aug 4 09:19:07 2005
New Revision: 227424
URL: http://svn.apache.org/viewcvs?rev=227424&view=rev
Log:
Add support for setting the name of the spacer image used by the tree.
Modified:
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java
Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java?rev=227424&r1=227423&r2=227424&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java (original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java Thu Aug 4 09:19:07 2005
@@ -316,6 +316,23 @@
}
/**
+ * Sets the image name for a spacer image used to align the other images inside the tree. (Defaults to "spacer.gif").
+ * @param spacerImage the image name (including extension)
+ * @jsptagref.attributedescription Sets the image name for a spacer image used to align the other images inside the tree.
+ * (Defaults to "spacer.gif").
+ * @jsptagref.databindable false
+ * @jsptagref.attributesyntaxvalue <i>string_spacerImage</i>
+ * @netui:attribute required="false" rtexprvalue="true"
+ * description="Sets the image name for a spacer image used to align the other images inside the tree."
+ */
+ public void setSpacerImage(String spacerImage)
+ {
+ String val = setNonEmptyValueAttribute(spacerImage);
+ if (val != null)
+ _iState.setImageSpacer(setNonEmptyValueAttribute(val));
+ }
+
+ /**
* Sets the default icon for TreeElements for a blank area of the tree.
* (Defaults to "folder.gif").
* @param itemIcon the image name of the itemIcon
Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java?rev=227424&r1=227423&r2=227424&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java (original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java Thu Aug 4 09:19:07 2005
@@ -155,6 +155,21 @@
}
/**
+ * Sets the image name for an image used to align the other images inside of a tree. (Defaults to "spacer.gif").
+ * @param spacerImage the image name (including extension)
+ * @jsptagref.attributedescription Sets the image name for an image used to align the other images inside of a tree.
+ * (Defaults to "spacer.gif")
+ * @jsptagref.databindable true
+ * @jsptagref.attributesyntaxvalue <i>string</i>
+ * @netui:attribute required="false"
+ * description="Sets the image name for an image used to align the other images inside of a tree."
+ */
+ public void setSpacerImage(String spacerImage)
+ {
+ _iState.setImageSpacer(spacerImage);
+ }
+
+ /**
* Sets the default icon for TreeElements for a blank area of the tree.
* (Defaults to "folder.gif").
* @param itemIcon the image name of the itemIcon