Author: cluts
Date: 2008-03-03 13:17:33 -0500 (Mon, 03 Mar 2008)
New Revision: 6502
Modified:
trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml
trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
Log:
http://jira.jboss.com/jira/browse/RF-672 - corrected names of attributes and components
for toolTip and changeExpandListener
http://jira.jboss.com/jira/browse/RF-926 - updated code for tree,
changeExpandListener,nodeSelectListener,recursiveTreeNodesAdaptor; corrected code for
toolTip(example of using "div" attributes)
Modified: trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml 2008-03-03
18:08:02 UTC (rev 6501)
+++ trunk/docs/userguide/en/src/main/docbook/included/changeExpandListener.xml 2008-03-03
18:17:33 UTC (rev 6502)
@@ -48,14 +48,12 @@
<para>
<emphasis role="bold">Example:</emphasis></para>
<programlisting role="JAVA"><![CDATA[package demo;
-
public class ImplBean implements org.richfaces.event.NodeExpandedListener{
...
}
]]></programlisting>
- <programlisting role="JAVA"><![CDATA[
-import demo.ImplBean;
+ <programlisting role="JAVA"><![CDATA[import demo.ImplBean;
...
ImplBean myListener = new ImplBean();
...
@@ -94,9 +92,7 @@
</para>
<programlisting role="JAVA"><![CDATA[package demo;
-
import org.richfaces.event.NodeExpandedEvent;
-
public class ListenerBean implements org.richfaces.event.NodeExpandedListener{
...
public void processExpansion(NodeExpandedEvent arg0){
@@ -104,7 +100,7 @@
}
...
}
-]]></programlisting>
+...]]></programlisting>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-03-03 18:08:02 UTC
(rev 6501)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-03-03 18:17:33 UTC
(rev 6502)
@@ -72,7 +72,7 @@
<title>Details of Usage</title>
<para>
<property>toolTip</property> main area is a simple rectangle area with any
information inside. The content may be defined via
-"value" attribute as text or via any nested content. When both are
defined, the value is displayed as text and nested content
+<emphasis><property>"value"</property></emphasis>
attribute as text or via any nested content. When both are defined, the value is displayed
as text and nested content
after the text. <property>toolTip</property> stretches if the content more
than the <property>toolTip</property> sizes.
</para>
<para>
@@ -87,7 +87,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<h:commandLink value="Simple Link">
+<h:commandLink value="Simple Link" id="link">
<rich:toolTip followMouse="true" direction="top-right"
mode="ajax" value="#{bean.toolTipContent}"
horizontalOffset="5"
verticalOffset="5" layout="block">
<f:facet name="defaultContent">
@@ -122,18 +122,18 @@
</figure>
<para>
By default, <property>toolTip</property> appears smart positioned. But as you
can see from the previous example, you
-can define an appearance direction via the corresponding attribute
"direction". And also it's possible to define vertical and
horizontal
+ can define an appearance direction via the corresponding attribute
<emphasis><property>"direction"</property></emphasis>.
And also it's possible to define vertical and horizontal
offsets relatively to a mouse position.
</para>
<para>
<property>toolTip</property> appears attached to the corner dependent on the
<emphasis><property>"direction"</property></emphasis>
attribute. By default it is positioned bottom-right.
<property>toolTip</property> activation occurs after a defined event
(default=mouseover) on the parent component takes into consideration
-the "delay" attribute (default=0) or after calling JS API function
Show(). <property>toolTip</property> deactivation occurs after mouseout event
on the parent component (excepting the situation when the mouse is hovered onto the
<property>toolTip</property> itself) or after calling JS API function Hide().
+the "delay" attribute (default=0) or after calling JS API function
show(). <property>toolTip</property> deactivation occurs after mouseout event
on the parent component (excepting the situation when the mouse is hovered onto the
<property>toolTip</property> itself) or after calling JS API function hide().
</para>
<note>
<title>Note:</title>
-It is recommended to define parent component "id" for correction of
<property>toolTip</property> work.
+ It is recommended to define parent component
<emphasis><property>"id"</property></emphasis>
for correction of <property>toolTip</property> work.
</note>
<para>The attribute
<emphasis><property>"for"</property></emphasis>
is used for defining the
<emphasis><property>"id"</property></emphasis>
of an element a toolTip should be attached to. Look at the example:
@@ -144,14 +144,14 @@
</para>
<programlisting role="XML"><![CDATA[...
<div id="elementId">
- <rich:toolTip for="elementId">Using a toolTip<rich:toolTip>
- <p>The first simple example<p>
+ <rich:toolTip for="elementId">Using a toolTip</rich:toolTip>
+ <p>The first simple example</p>
</div>
...
<div id="elementId">
- <p>The second simple example<p>
+ <p>The second simple example</p>
</div>
-<rich:toolTip for="elementId">Using a toolTip<rich:toolTip>
+<rich:toolTip for="elementId">Using a toolTip</rich:toolTip>
...
]]></programlisting>