Author: vsukhov
Date: 2008-03-29 10:53:09 -0400 (Sat, 29 Mar 2008)
New Revision: 7409
Added:
trunk/docs/userguide/en/src/main/resources/images/inplaceSelect1.png
trunk/docs/userguide/en/src/main/resources/images/inplaceSelect2.png
trunk/docs/userguide/en/src/main/resources/images/inplaceSelectA.png
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.desc.xml 2008-03-29
14:45:28 UTC (rev 7408)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.desc.xml 2008-03-29
14:53:09 UTC (rev 7409)
@@ -9,7 +9,7 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><rich:inplaceInput></property>
- </emphasis> is an input component used for displaying and editing textual
data </para>
+ </emphasis> is an input component used for displaying and editing textual
data. </para>
<figure>
<title><emphasis
role="bold"><property><rich:inplaceInput></property></emphasis>
component</title>
@@ -23,7 +23,7 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Option to display "save",
"cancel" buttons</listitem>
+ <listitem>Option to display "Save",
"Cancel" buttons</listitem>
<listitem>Possibility to assign an JavaScript action on state
change</listitem>
<listitem>Switching between<emphasis
role="bold"><property><rich:inplaceInput></property></emphasis>
components using "Tab" key</listitem>
<listitem>Resizable input field</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-03-29 14:45:28
UTC (rev 7408)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-03-29 14:53:09
UTC (rev 7409)
@@ -90,7 +90,7 @@
</figure>
</listitem>
<listitem>
- <para><property>;Edit</property>state - the text can be
edited and saved;</para>
+ <para><property>Edit</property> state - the text can be
edited and saved;</para>
<figure>
<title>Edit state</title>
<mediaobject>
@@ -101,7 +101,7 @@
</figure>
</listitem>
<listitem>
- <para><property>Changed</property>state - displays the
edited text and indicates that it was edited, changed</para>
+ <para><property>Changed</property> state - displays the
edited text and indicates that it was edited, changed;</para>
<figure>
<title>Changed state</title>
<mediaobject>
@@ -156,7 +156,7 @@
Input data is saved (submitted) automatically whenever the input field loses focus.
Nevertheless, you can use the
<emphasis><property>"showControls"</property></emphasis>
- attribute, which makes <property>"save"</property>and
<property>"cancel" </property> buttons
+ attribute, which makes "Save" and "Cancel"
buttons
appear next to the input field.
</para>
<para>
@@ -183,11 +183,11 @@
The
<emphasis><property>"
controlsHorizontalPosition"</property></emphasis> attribute has
- <property>"left"</property>,
<property>"right"</property> and <property>
"center"</property> definitions.
+ "left", "right" and
"center" definitions.
The
<emphasis><property>" controlsVerticalPosition
"</property></emphasis>
- attribute has <property>"bottom"</property>,
<property>"center"</property> and
<property>"top"</property> definitions.
+ attribute has "bottom", "center" and
"top" definitions.
</para>
<figure>
@@ -205,7 +205,7 @@
<emphasis><property>"saveControlIcon"</property></emphasis>
and
<emphasis><property>"cancelControlIcon"</property></emphasis>
- attributes r. You need to define the path to where your images are located.
+ attributes. You need to define the path to where your images are located.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.desc.xml 2008-03-29
14:45:28 UTC (rev 7408)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.desc.xml 2008-03-29
14:53:09 UTC (rev 7409)
@@ -15,7 +15,7 @@
<title><emphasis
role="bold"><property><rich:inplaceSelect></property></emphasis>
component</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/inplaceSelect.png"/>
+ <imagedata fileref="images/inplaceSelectA.png"/>
</imageobject>
</mediaobject>
</figure>
@@ -23,8 +23,8 @@
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Option to display "save",
"cancel" buttons as icons</listitem>
- <listitem>Option to display "save",
"cancel" buttons as standard buttons</listitem>
+ <listitem>Option to display "Save",
"Cancel" buttons as icons</listitem>
+ <listitem>Option to display "Save",
"Cancel" buttons as standard buttons</listitem>
<listitem>Possibility to assign an JavaScript action on state
change</listitem>
<listitem>Switching between<emphasis
role="bold"><property><rich:inplaceSelect></property></emphasis>
components using "Tab" key</listitem>
<listitem>Resizable select field</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-03-29
14:45:28 UTC (rev 7408)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-03-29
14:53:09 UTC (rev 7409)
@@ -50,7 +50,7 @@
<programlisting role="XML"><![CDATA[...
<rich:inplaceSelect value="#{Bean.inputValue}" defaultLabel="Click to
edit">
- <f:selectItem itemValue="0" itemLabel="oil well"/>
+ <f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="1" itemLabel="factory"/>
<f:selectItem itemValue="2" itemLabel="newspaper"/>
</rich:inplaceSelect>
@@ -128,8 +128,8 @@
<para>You can form he list of the options: using
-
<emphasis><property><f:selectItem></property></emphasis>
and
-
<emphasis><property><f:selectItems></property></emphasis>
</para>
+ <emphasis
role="bold"><property><f:selectItem></property></emphasis>
and
+ <emphasis
role="bold"><property><f:selectItems></property></emphasis>
</para>
<para>Please see the example below</para>
@@ -141,7 +141,7 @@
</para>
<programlisting role="XML"><![CDATA[...
<rich:inplaceSelect value="#{inplaceComponentsBean.inputValue}"
showControls="true" defaultLabel="click to edit">
- <f:selectItem itemValue="0" itemLabel="oil well"/>
+ <f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="1" itemLabel="factory"/>
<f:selectItem itemValue="2" itemLabel="newspaper"/>
</rich:inplaceSelect>
@@ -156,7 +156,7 @@
Nowever, if you want the end user to confirm the data saving explicitly you can:
</para>
<itemizedlist>
<listitem>
- <para>Use a
<emphasis><property>"showControls"</property></emphasis>
attribute, which makes "save" and "cancel" buttons
(displayed as icons) appear next to the input field;
+ <para>Use a
<emphasis><property>"showControls"</property></emphasis>
attribute, which makes "Save" and "Cancel" buttons
(displayed as icons) appear next to the input field;
</para>
<para>Please see the example </para>
<para>
@@ -176,7 +176,7 @@
<listitem>
- <para>Use standard buttons by means of the <emphasis
role="bold"><property>controls</property></emphasis>facet
+ <para>Use standard buttons by means of the
<emphasis><property>"controls"</property></emphasis>facet
</para>
<para>Please see the example </para>
<para>
@@ -202,7 +202,7 @@
<note>
<title>Note:</title>
<para>
- The <emphasis>
<property>controls</property></emphasis>facet also implies using
showcontrols
+ The <emphasis>
<property>"controls"</property></emphasis>facet also
implies using showcontrols
attribute and it has to be defined as "true".
</para>
</note>
@@ -245,11 +245,11 @@
The
<emphasis><property>"
controlsHorizontalPosition"</property></emphasis> attribute has
- <property>"left"</property>,
<property>"right"</property> and <property>
"center"</property> definitions.
+ "left", "right" and
"center" definitions.
The
<emphasis><property>" controlsVerticalPosition
"</property></emphasis>
- attribute has <property>"bottom"</property>,
<property>"center"</property> and
<property>"top"</property> definitions.
+ attribute has "bottom", "center" and
"top" definitions.
</para>
@@ -412,11 +412,11 @@
</section>
-<!-- <section>
+<section>
<title>Skin Parameters Redefinition</title>
<table>
- <title>Skin parameters redefinition for "save" and
"cancel" controls</title>
+ <title>Skin parameters redefinition for view state</title>
<tgroup cols="2">
<thead>
@@ -429,32 +429,24 @@
<tbody>
<row>
- <entry>tabBackgroundColor</entry>
+ <entry>editorBackgroundColor</entry>
<entry>background-color</entry>
</row>
<row>
- <entry>panelBorderColor</entry>
+ <entry>generaTextColor</entry>
- <entry>border-color</entry>
+ <entry>border-bottom-color</entry>
</row>
- <row>
- <entry>panelBorderColor</entry>
-
- <entry>border-color</entry>
- </row>
-
-
-
-
+
</tbody>
</tgroup>
</table>
<table>
- <title>Skin parameters redefinition for view state</title>
+ <title>Skin parameters redefinition for input field in edit
state</title>
<tgroup cols="2">
<thead>
@@ -467,14 +459,14 @@
<tbody>
<row>
- <entry>editorBackgroundColor</entry>
+ <entry>editBackgroundColor</entry>
<entry>background-color</entry>
</row>
<row>
- <entry>generalTextColor</entry>
+ <entry>panelBorderColor</entry>
- <entry>border-bottom-color</entry>
+ <entry>border-color</entry>
</row>
</tbody>
</tgroup>
@@ -483,7 +475,7 @@
<table>
- <title>Skin parameters redefinition for "Changed"
state</title>
+ <title>Skin parameters redefinition for control</title>
<tgroup cols="2">
<thead>
@@ -496,22 +488,22 @@
<tbody>
<row>
- <entry>editorBackgroundColor</entry>
+ <entry>tabBackgroundColor</entry>
<entry>background-color</entry>
</row>
<row>
- <entry>generalTextColo</entry>
+ <entry>panelBorderColor</entry>
- <entry>border-bottom-color</entry>
+ <entry>border-color</entry>
</row>
</tbody>
</tgroup>
</table>
<table>
- <title>Classes names that define input field look and feel in edit state
</title>
+ <title>Skin parameters redefinition for pressed control</title>
<tgroup cols="2">
<thead>
@@ -524,7 +516,7 @@
<tbody>
<row>
- <entry>editBackgroundColor</entry>
+ <entry>tabBackgroundColor</entry>
<entry>background-color</entry>
</row>
@@ -537,17 +529,76 @@
</tbody>
</tgroup>
</table>
+ <table>
+ <title>Skin parameters redefinition for list</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>editBackgroundColor</entry>
+
+ <entry>background-color</entry>
+ </row>
+
+ <row>
+ <entry>panelBorderColor</entry>
+
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Skin parameters redefinition for selected item</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>headerTextColor</entry>
+
+ <entry>color</entry>
+ </row>
+
+ <row>
+ <entry>headerBackgroundColor</entry>
+
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- </section>-->
+ </section>
<!-- END Skin Parameters Redefinition-->
<!-- Definition of Custom Style Classes-->
- <!--<section>
+ <section>
<title>Definition of Custom Style Classes</title>
- <para>On the screenshot there are classes names that define styles for
component elements.</para>
+ <!--para>On the screenshot there are classes names that define styles for
component elements.</para>
<figure>
@@ -557,10 +608,9 @@
<imagedata fileref="images/inplaceInputClasses.png"/>
</imageobject>
</mediaobject>
- </figure>
+ </figure-->
-
- <table>
+ <table id="cn3">
<title>Class name for the view state</title>
<tgroup cols="2">
<thead>
@@ -571,15 +621,29 @@
</thead>
<tbody>
<row>
- <entry>rich-inplace-view</entry>
- <entry>Defines styles for the view state</entry>
+ <entry>rich-inplace-select-view</entry>
+ <entry>Defines styles for the select view</entry>
</row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Class name for the input field in edit state</title>
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-inplace-input-view-hover</entry>
- <entry>Defines styles for hovered text in the view state
</entry>
+ <entry>Class name</entry>
+ <entry>Description</entry>
</row>
-
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-inplace-select-field</entry>
+ <entry>Defines styles for the select field</entry>
+ </row>
+
</tbody>
</tgroup>
</table>
@@ -590,7 +654,7 @@
<table>
- <title>Class name for the input field in edit state</title>
+ <title>Class name for the control</title>
<tgroup cols="2">
<thead>
<row>
@@ -600,9 +664,13 @@
</thead>
<tbody>
<row>
- <entry>rich-inplace-field</entry>
- <entry>Defines styles for input field look and feel in edit
state</entry>
+ <entry>rich-inplace-select-control</entry>
+ <entry>Defines styles for the select control</entry>
</row>
+ <row>
+ <entry>rich-inplace-select-control-press</entry>
+ <entry>Defines styles for the pressed select control</entry>
+ </row>
</tbody>
</tgroup>
@@ -610,7 +678,7 @@
<table>
- <title>Class name for the "Changed" state</title>
+ <title>Class name for the list</title>
<tgroup cols="2">
<thead>
<row>
@@ -620,16 +688,11 @@
</thead>
<tbody>
<row>
- <entry>rich-inplace-changed</entry>
- <entry>Defines styles for the "Changed"
state</entry>
+ <entry>rich-inplace-select-list-decoration</entry>
+ <entry>Defines styles for a wrapper <table> element of an
inplaceSelect</entry>
</row>
- <row>
- <entry> rich-inplace-input-changed-hover </entry>
- <entry>Defines styles for the hovered text in the
"Changed" state</entry>
- </row>
-
- rich-inplace-input-changed-hover
- </tbody>
+
+ </tbody>
</tgroup>
</table>
@@ -637,7 +700,7 @@
<table>
- <title>Classes names "save" and "cancel"
controls in Edit state</title>
+ <title>Classes names for the selected item</title>
<tgroup cols="2">
<thead>
<row>
@@ -648,52 +711,61 @@
<tbody>
<row>
- <entry>rich-inplace-control</entry>
- <entry>Defines styles for the controls</entry>
+ <entry>rich-inplace-select-selected-item</entry>
+ <entry>Defines styles for the selected item</entry>
</row>
- <row>
- <entry>.rich-inplace-control-press</entry>
- <entry>Defines styles for the controls when either of the buttons is
pressed</entry>
- </row>
- <row>
- <entry>.rich-inplace-shadow-size</entry>
- <entry>Defines size of the shadow</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-tl</entry>
- <entry>Defines styles for the shadow in the top left corner
</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-tr</entry>
- <entry>Defines styles for the shadow in the top right
corner</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-bl</entry>
- <entry>Defines styles for the shadow in the bottom left
corner</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-br</entry>
- <entry>Defines styles for the shadow in the bottom right
corner</entry>
- </row>
+
</tbody>
</tgroup>
</table>
+ <table>
+ <title>Classes names for the shadow</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-inplace-select-shadow-tl</entry>
+ <entry>Defines styles for the top-left shadow</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-select-shadow-tr</entry>
+ <entry>Defines styles for the top-right shadow</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-select-shadow-bl</entry>
+ <entry>Defines styles for the bottom-left shadow</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-select-shadow-br</entry>
+ <entry>Defines styles for the bottom-right shadow</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+
+
<para>In order to redefine styles for all <emphasis
role="bold">
<property><rich:inplaceSelect></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="tab_cn3"> above</link>) and define necessary properties in
them. </para>
+ same names (possible classes could be found in the tables <link
linkend="cn3"> above</link>) and define necessary properties in them.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.rich-inplace-field {
-font-style: bold;
+.rich-inplace-select-list-decoration{
+ background-color: #ecf4fe;
}
...]]></programlisting>
@@ -704,11 +776,11 @@
<title>Redefinition styles with predefined classes</title>
<mediaobject>
<imageobject>
- <imagedata
fileref="images/inplaceInputRich-inplace-field.png"/>
+ <imagedata fileref="images/inplaceSelect1.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In the shown example the font in <property>edit</property>
state is changed to bold.</para>
+ <para>In the shown example the background color for list is
changed.</para>
@@ -721,16 +793,16 @@
</para>
<programlisting role="CSS"><![CDATA[...
.myClass {
-color: #008cca;
-}
+ background-color:#bed6f8;
+ font-style:italic;}
...]]></programlisting>
- <para>The
<emphasis><property>"styleClass"</property></emphasis>
attribute for <emphasis role="bold"
+ <para>The
<emphasis><property>"viewClass"</property></emphasis>
attribute for <emphasis role="bold"
<property><rich:inplaceSelect>
</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:inplaceSelect
value="click to edit" styleClass="myClass"/>
+ <programlisting role="CSS"><![CDATA[...<rich:inplaceSelect
value="click to edit" viewClass="myClass"/>
]]></programlisting>
<para>This is a result:</para>
@@ -739,14 +811,14 @@
<title>Modificaton of a look and feel with own classes and
<emphasis><property>styleClass</property></emphasis>
attributes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/inplaceInputMyClass.png"/>
+ <imagedata fileref="images/inplaceSelect2.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, the font color of the text on
the component was changed.</para>
+ <para>As it could be seen on the picture above, the font style and background
color in <property>view</property> state is changed.</para>
- </section>-->
+ </section>
<section>
<title>Relevant Resources Links</title>
Added: trunk/docs/userguide/en/src/main/resources/images/inplaceSelect1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/inplaceSelect1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/inplaceSelect2.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/inplaceSelect2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/inplaceSelectA.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/inplaceSelectA.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream