Author: artdaw
Date: 2008-03-29 10:44:14 -0400 (Sat, 29 Mar 2008)
New Revision: 7407
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
Log:
http://jira.jboss.com/jira/browse/RF-1207 - review done
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-29 13:48:02
UTC (rev 7406)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-03-29 14:44:14
UTC (rev 7407)
@@ -376,8 +376,41 @@
</section>
-
+ <!-- JavaScript API-->
<section>
+ <title>JavaScript API</title>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>enable()</entry>
+ <entry>Enables the component</entry>
+ </row>
+ <row>
+ <entry>disable()</entry>
+ <entry>Disables the component</entry>
+ </row>
+ <row>
+ <entry>stop()</entry>
+ <entry>Stops the uploading process</entry>
+ </row>
+ <row>
+ <entry>clear()</entry>
+ <entry>Clears list of files</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <!-- End of JavaScript API-->
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a
<emphasis>
<property>style class redefinition method.</property>
@@ -792,45 +825,46 @@
</row>
<row>
<entry>rich-fileupload-anc</entry>
- <entry>Defines styles for "Cancel" and
"Clear" links</entry>
+ <entry>Defines styles for "Cancel",
"Stop", "Clear" links</entry>
</row>
</tbody>
</tgroup>
</table>
- <para>In order to redefine styles for all <emphasis
role="bold">
- <property><rich:fileUpload></property>
- </emphasis> components on a page using CSS, it's enough to create
classes with the
- same names (possible classes could be found in the tables <link
linkend="fileUploadCN"> above</link>) and define necessary properties
in them. </para>
-
+ <para>In order to redefine styles for all <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
components on a page
+ using CSS, it's enough to create classes with the same names
+ (possible classes could be found in the tables <link
linkend="fileUploadCN"> above</link>) and define necessary properties
in them.
+ </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.upload_list_decor{
-background-color:#ecf4fe;
+.rich-fileupload-anc{
+ font-weight:bold;
+ text-decoration:none;
}
...]]></programlisting>
- <para>This is a result:</para>
+ <para>This is the result:</para>
<figure>
<title>Redefinition styles with predefined classes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/fileUpload10.png"/>
+ <imagedata fileref="images/fileUpload9.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In the example the background color for list is
changed.</para>
+ <para>In the example above the font weight and text decoration for
"Cancel" and "Clear" links are changed.</para>
- <para>Also it’s possible to change styles of particular <emphasis
role="bold"
-
><property><rich:fileUpload></property></emphasis>
component. In this case you should create own style classes and use them in the
corresponding <emphasis role="bold"
-
><property><rich:fileUpload></property></emphasis>
<property>styleClass</property> attributes. An example is placed
below:</para>
-
<para>
+ Also it’s possible to change styles of particular <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
component.
+ In this case you should create own style classes and use them in the
corresponding <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
+ <property>styleClass</property> attributes. An example is placed
below:
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
@@ -838,27 +872,27 @@
font-weight:bold;
}
...]]></programlisting>
- <para>The
<emphasis><property>"addButtonClass"</property></emphasis>
attribute for <emphasis role="bold"
-
><property><rich:fileUpload></property></emphasis> is
defined as it’s shown in the example below:</para>
-
<para>
+ The
<emphasis><property>"addButtonClass"</property></emphasis>
attribute for
+ <emphasis
role="bold"><property><rich:fileUpload></property></emphasis>
is defined as it’s shown in the example below:
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[<rich:fileUpload ...
addButtonClass="myClass"/>
]]></programlisting>
- <para>This is a result:</para>
-
+ <para>This is the result:</para>
<figure>
<title>Redefinition styles with own classes and styleClass
attributes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/fileUpload9.png"/>
+ <imagedata fileref="images/fileUpload10.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, the font style for add
button is changed.</para>
+ <para>As it could be seen on the picture above, the font style for
"Add" button is changed.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/resources/images/fileUpload10.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/fileUpload9.png
===================================================================
(Binary files differ)