You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by st...@apache.org on 2005/05/12 23:54:20 UTC

svn commit: r169892 - /incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java

Author: steveh
Date: Thu May 12 14:54:20 2005
New Revision: 169892

URL: http://svn.apache.org/viewcvs?rev=169892&view=rev
Log:
Fix for BEEHIVE-645: netui:area tag libraries documentation

Added example code.

Modified:
    incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java?rev=169892&r1=169891&r2=169892&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java (original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Area.java Thu May 12 14:54:20 2005
@@ -19,6 +19,18 @@
  * </map>
  * </pre>
  * @netui:tag name="area" description="Generates a URL-encoded area to a specified URI."
+ * @example 
+ * The following &lt;netui> tags... 
+ * <pre>&lt;netui:image src="someDefaultPic.jsp" alt="a default picture" usemap="#defaultMap"/>
+ * &lt;map id="defaultMap" name="defaultMap">
+ *   &lt;netui:area shape="rect" coords="0,0,80,80" href="bigPicture.jsp" alt="big picture of the image"/>
+ * &lt;/map></pre>
+ *
+ * ...output the following HTML:
+ * <pre>&lt;img src="someDefaultPic.jsp" usemap="#defaultMap" alt="a default picture">
+ * &lt;map id="defaultMap" name="defaultMap">
+ *   &lt;area href="bigPicture.jsp" shape="rect" alt="big picture of the image" coords="0,0,80,80">
+ * &lt;/map></pre>
  * @see Attribute
  * @see java.lang.String
  */