Author: smukhina
Date: 2007-07-09 10:04:30 -0400 (Mon, 09 Jul 2007)
New Revision: 1549
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-430
Modified: trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-07-09 13:58:07 UTC
(rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/dndParam.xml 2007-07-09 14:04:30 UTC
(rev 1549)
@@ -53,6 +53,10 @@
<para>Here is a simple example as it might be used in a page, nested in one of
the drag-and-drop components:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:dragSupport dragType="file">
<rich:dndParam name="testDrag" value="testDragValue"
@@ -65,6 +69,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">import
org.richfaces.component.html.HtmlDndParam;
...
HtmlDndParam myDparam = new HtmlDndParam();
@@ -93,6 +101,10 @@
<para>In this case, <property>dndParam</property> is of a drag
type
and is defined in the following way:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JSP">...
<rich:dragSupport ...>
<rich:dndParam type="drag" name="dragging">
@@ -115,6 +127,10 @@
<para>In this case <property>dndParam</property> is of a drag type
and is defined in the following way:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JSP">...
<rich:dragSupport ...>
<rich:dndParam type="drag" name="label"
value="#{msg.subj}"/>
@@ -135,6 +151,10 @@
<para>In this case <property>dndParam</property> is of a drop type
and is
defined in the following way:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JSP">...
<rich:dropSupport ...>
<rich:dndParam type="drop" name="comp" >
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-07-09 13:58:07
UTC (rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-07-09 14:04:30
UTC (rev 1549)
@@ -61,6 +61,10 @@
<para>Here is a simple example as it might be used in a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<h:panelGrid id="drag1">
<rich:dragSupport dragType="item"/>
@@ -73,6 +77,9 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">import
org.richfaces.component.html.HtmlDragSupport;
...
HtmlDragSupport myDragZone = new HtmlDragSupport();
@@ -90,6 +97,10 @@
defined on it. Thus, this example won't work, because the
<property>h:column</property> tag
doesn't provide the necessary properties for redefining events on the
client:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<h:column>
<rich:dragSupport dragIndicator=":form:iii"
dragType="text">
@@ -103,6 +114,10 @@
<para>However, using <property>a4j:outputPanel</property> as a
wrapper inside
<property>h:column</property>, the following code could be used
successfully:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<h:column>
<a4j:outputPanel>
@@ -122,6 +137,10 @@
drag zone. Only drop zones with this name as an acceptable type can be used in
drag-and-drop
operations. Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<h:panelGrid id="drag1">
<rich:dragSupport dragType="singleItems" .../>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-07-09 13:58:07
UTC (rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-07-09 14:04:30
UTC (rev 1549)
@@ -57,6 +57,10 @@
<para>Here is a simple example as it might be used in a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="xml">...
<rich:dropDownMenu value="Item1">
<!--Nested menu components-->
@@ -68,6 +72,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="java">...
org.richfaces.component.html.HtmlDropDownMenu myMenu = new
org.richfaces.component.html.HtmlDropDownMenu();
...</programlisting>
@@ -81,6 +89,10 @@
<para>Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="xml">...
<f:facet name="label">
<h:graphicImage value="/images/img1.gif"/>
@@ -91,6 +103,10 @@
<para>Use the "event" attribute to define an event for the
represented element that triggers a
menu appearance. An example of a menu appearance on a click can be seen
below.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="xml">...
<rich:dropDownMenu event="onclick" value="Item1">
<!--Nested menu components-->
@@ -187,6 +203,10 @@
<para>Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="xml">...
<rich:dropDownMenu value="Item1" direction="bottom-right"
jointPoint="tr">
<!--Nested menu components-->
@@ -211,6 +231,10 @@
<para>Here is an example:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="xml">...
<rich:dropDownMenu value="Item1" direction="bottom-right"
jointPoint="tr" horizontalOffset="-15"
verticalOffset="0">
<!--Nested menu components-->
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-07-09 13:58:07
UTC (rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropSupport.xml 2007-07-09 14:04:30
UTC (rev 1549)
@@ -62,6 +62,10 @@
<para>This simple example shows how to make a panel component a potential drop
target for
drag-and-drop operations using "text" elements as the dragged
items.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:panel>
<rich:dropSupport acceptedTypes="text"/>
@@ -73,6 +77,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">import
org.richfaces.component.html.HtmlDropSupport;
...
HtmlDropSupport myDragZone = new HtmlDropSupport();
@@ -101,6 +109,10 @@
<property><rich:dropSupport></property>
</emphasis>.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:dropSupport acceptedTypes="[iconsDragged, textDragged]"
typeMapping="{iconsDragged: DropIcon}">
<rich:dndParam name="DropIcon">
@@ -121,6 +133,10 @@
<para>As draggable items, this table contains a list of such items designated
as being of type
"text":</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:dataTable value="#{capitalsBean.capitals}"
var="caps">
<f:facet name="caption">Capitals
List</f:facet>
@@ -139,6 +155,10 @@
<para>As a drop zone, this panel will accept draggable items of type
"text" and then rerender an
element with the ID of "box":</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:panel style="width:100px;height:100px;">
<f:facet name="header">Drop Zone</f:facet>
@@ -151,6 +171,10 @@
<para>As a part of the page that can be updated in a partial page update, this
table has an ID
of "box":</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:dataTable value="#{capitalsBean.capitals2}"
var="cap2" id="box">
<f:facet name="caption">Capitals
chosen</f:facet>
@@ -162,6 +186,10 @@
<para>And finally, as a listener, this listener will implement the dropped
element:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">...
public void addCapital2(DropEvent event) {
FacesContext context = FacesContext.getCurrentInstance();
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-07-09
13:58:07 UTC (rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-07-09
14:04:30 UTC (rev 1549)
@@ -71,6 +71,10 @@
</emphasis> (on default = "1") attributes, which define the
beginning and
the end of a numerical area and a <property>slider</property> property
step.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting
role="XML"><![CDATA[<rich:inputNumberSlider></rich:inputNumberSlider>]]></programlisting>
<para>It generates on a page:</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-09 13:58:07
UTC (rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-09 14:04:30
UTC (rev 1549)
@@ -61,6 +61,10 @@
<para>Here is a simple example as it might be used in a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<rich:modalPanel id="panel">
<f:facet name="header">
@@ -80,6 +84,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">import
org.richfaces.component.html.HtmlModalPanel;
...
HtmlModalPanel myPanel = new HtmlModalPanel();
@@ -131,6 +139,10 @@
<para>It's possible to add a "header" facet to the
component to set
the content for the header.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">...
<form jsfc="h:form" id="form">
<rich:modalPanel id="panel" width="400"
height="300">
@@ -161,6 +173,10 @@
<para>A facet named "controls" can be added to the component
to place control
elements on a header.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML">
<rich:modalPanel id="panel">
<f:facet name="header"><h:outputText
value="Modal Panel"/></f:facet>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-07-09 13:58:07 UTC
(rev 1548)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-07-09 14:04:30 UTC
(rev 1549)
@@ -106,6 +106,10 @@
The attribute has several values: left (Default), right, center, which specify Tabs
components
location on the top of the tabPanel.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:tabPanel width="40%" headerAlignment="right">
<rich:tab label="Canon">