You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mu...@apache.org on 2007/05/24 03:31:26 UTC
svn commit: r541132 -
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java
Author: musachy
Date: Wed May 23 18:31:25 2007
New Revision: 541132
URL: http://svn.apache.org/viewvc?view=rev&rev=541132
Log:
Update javadoc for new tooltip implementation
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java?view=diff&rev=541132&r1=541131&r2=541132
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java Wed May 23 18:31:25 2007
@@ -310,6 +310,7 @@
*
*
* <!-- START SNIPPET: tooltipdescription -->
+ * <b>tooltipConfig is deprecated, use individual tooltip configuration attributes instead </>
*
* Every Form UI component (in xhtml / css_xhtml or any other that extends them) can
* have tooltips assigned to them. The Form component's tooltip related attribute, once
@@ -318,24 +319,24 @@
*
* <p/>
*
- * In Example 1, the textfield will inherit the tooltipDelay and tooltipIcon attribte from
- * its containing form. In other words, although it doesn't define a tooltipAboveMousePointer
+ * In Example 1, the textfield will inherit the tooltipDelay and tooltipIconPath attribte from
+ * its containing form. In other words, although it doesn't define a tooltipIconPath
* attribute, it will have that attribute inherited from its containing form.
*
* <p/>
*
- * In Example 2, the the textfield will inherite both the tooltipDelay and
- * tooltipIcon attribute from its containing form, but the tooltipDelay
+ * In Example 2, the textfield will inherite both the tooltipDelay and
+ * tooltipIconPath attribute from its containing form, but the tooltipDelay
* attribute is overriden at the textfield itself. Hence, the textfield actually will
* have its tooltipIcon defined as /myImages/myIcon.gif, inherited from its containing form, and
* tooltipDelay defined as 5000.
*
* <p/>
*
- * Example 3, 4 and 5 show different ways of setting the tooltipConfig attribute.<br/>
+ * Example 3, 4 and 5 show different ways of setting the tooltip configuration attribute.<br/>
* <b>Example 3:</b> Set tooltip config through the body of the param tag<br/>
* <b>Example 4:</b> Set tooltip config through the value attribute of the param tag<br/>
- * <b>Example 5:</b> Set tooltip config through the tooltipConfig attribute of the component tag<br/>
+ * <b>Example 5:</b> Set tooltip config through the tooltip attributes of the component tag<br/>
*
* <!-- END SNIPPET: tooltipdescription -->
*
@@ -345,8 +346,8 @@
*
* <!-- Example 1: -->
* <s:form
- * tooltipConfig="#{'tooltipDelay':'500',
- * 'tooltipIcon':'/myImages/myIcon.gif'}" .... >
+ * tooltipDelay="500"
+ * tooltipIconPath="/myImages/myIcon.gif" .... >
* ....
* <s:textfield label="Customer Name" tooltip="Enter the customer name" .... />
* ....
@@ -354,12 +355,12 @@
*
* <!-- Example 2: -->
* <s:form
- * tooltipConfig="#{'tooltipDelay':'500',
- * 'tooltipIcon':'/myImages/myIcon.gif'}" ... >
+ * tooltipDelay="500"
+ * tooltipIconPath="/myImages/myIcon.gif" .... >
* ....
* <s:textfield label="Address"
* tooltip="Enter your address"
- * tooltipConfig="#{'tooltipDelay':'5000'}" />
+ * tooltipDelay="5000" />
* ....
* </s:form>
*
@@ -368,9 +369,11 @@
* <s:textfield
* label="Customer Name"
* tooltip="One of our customer Details">
- * <s:param name="tooltipConfig">
- * tooltipDelay = 500 |
- * tooltipIcon = /myImages/myIcon.gif
+ * <s:param name="tooltipDelay">
+ * 500
+ * </s:param>
+ * <s:param name="tooltipIconPath">
+ * /myImages/myIcon.gif
* </s:param>
* </s:textfield>
*
@@ -380,9 +383,8 @@
* label="Customer Address"
* tooltip="Enter The Customer Address" >
* <s:param
- * name="tooltipConfig"
- * value="#{'tooltipDelay':'500',
- * 'tooltipIcon':'/myImages/myIcon.gif'}" />
+ * name="tooltipDelay"
+ * value="500" />
* </s:textfield>
*
*
@@ -390,8 +392,8 @@
* <s:textfield
* label="Customer Telephone Number"
* tooltip="Enter customer Telephone Number"
- * tooltipConfig="#{'tooltipDelay':'500',
- * 'tooltipIcon':'/myImages/myIcon.gif'}" />
+ * tooltipDelay="500"
+ * tooltipIconPath="/myImages/myIcon.gif" />
*
* <!-- END SNIPPET: tooltipexample -->
* </pre>