JBoss Rich Faces SVN: r11853 - trunk/ui/hotKey/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-17 11:49:23 -0500 (Wed, 17 Dec 2008)
New Revision: 11853
Modified:
trunk/ui/hotKey/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.hotkeys.js
Log:
https://jira.jboss.org/jira/browse/RF-5283
Modified: trunk/ui/hotKey/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.hotkeys.js
===================================================================
--- trunk/ui/hotKey/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.hotkeys.js 2008-12-17 16:45:54 UTC (rev 11852)
+++ trunk/ui/hotKey/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.hotkeys.js 2008-12-17 16:49:23 UTC (rev 11853)
@@ -201,12 +201,46 @@
this.all[targetData].events[opt.type].callbackMap[combi] = {cb: callback, propagate:opt.propagate};
return jQuery;
};
+
+ this._deleteEmptyProperty = function(object, property) {
+ var nestedObject = object[property];
+
+ var name = "";
+ for (name in nestedObject) {
+ break;
+ }
+
+ if (!name) {
+ delete object[property];
+ }
+ };
+
this.remove = function(exp, opt) {
opt = opt || {};
target = opt.target || jQuery('html')[0];
type = opt.type || 'keydown';
exp = exp.toLowerCase();
- delete this.all[this._checkUniqueID(target)].events[type].callbackMap[exp]
+
+ var uniqueId = this._checkUniqueID(target);
+ if (uniqueId) {
+ var element = this.all[uniqueId];
+ if (element) {
+ var events = element['events'];
+ if (events) {
+ var event = events[type];
+ var callbackMap = event['callbackMap'];
+
+ delete callbackMap[exp];
+
+ this._deleteEmptyProperty(event, 'callbackMap');
+ this._deleteEmptyProperty(events, type);
+ this._deleteEmptyProperty(element, 'events');
+ }
+
+ this._deleteEmptyProperty(this.all, uniqueId);
+ }
+ }
+
return jQuery;
};
jQuery.hotkeys = this;
17 years, 5 months
JBoss Rich Faces SVN: r11852 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-17 11:45:54 -0500 (Wed, 17 Dec 2008)
New Revision: 11852
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-5214
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-12-17 16:21:46 UTC (rev 11851)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-12-17 16:45:54 UTC (rev 11852)
@@ -478,9 +478,16 @@
var p = o.parentNode.parentNode;
p = $(p);
if (p.getWidth() != 0) {
- o.parentNode.style.width = p.getWidth() + "px";
- o.parentNode.style.height = p.getHeight() + "px";
+ var style = o.parentNode.style;
+ style.width = p.getWidth() + "px";
+ style.height = p.getHeight() + "px";
+
Event.stopObserving(p,'mouseover', this.inputHandler);
+
+ if (Richfaces.browser.isIE && this.flashComponent) {
+ this.flashComponent.style.width = style.width;
+ this.flashComponent.style.height = style.height;
+ }
}else {
this.inputHandler = this.initFileInput.bindAsEventListener(this);
Event.observe(p,'mouseover', this.inputHandler);
@@ -1149,11 +1156,6 @@
acceptedTypes: this.acceptedTypes,
noDuplicate: this.options.noDuplicate,
maxFiles: this.maxFileBatchSize });
- if (Richfaces.browser.isIE)
- {
- this.flashComponent.style.width = this.currentInput.parentNode.style.width;
- this.flashComponent.style.height = this.currentInput.parentNode.style.height;
- }
this.enable();
},
17 years, 5 months
JBoss Rich Faces SVN: r11851 - trunk/samples/inplaceSelect-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-12-17 11:21:46 -0500 (Wed, 17 Dec 2008)
New Revision: 11851
Modified:
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
demo corrected
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-12-17 15:40:28 UTC (rev 11850)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-12-17 16:21:46 UTC (rev 11851)
@@ -75,9 +75,7 @@
controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
listWidth="#{bean.listWidth}"
listHeight="#{bean.listHeight}"
- selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
- editOnTab="#{bean.editOnTab}"
openOnEdit="true"
layout="inline"
value="#{bean.value}"
Modified: trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-12-17 15:40:28 UTC (rev 11850)
+++ trunk/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-12-17 16:21:46 UTC (rev 11851)
@@ -78,7 +78,6 @@
value="#{bean.value}"
listWidth="#{bean.listWidth}"
listHeight="#{bean.listHeight}"
- selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
>
<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
17 years, 5 months
JBoss Rich Faces SVN: r11850 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/calendar and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-12-17 10:40:28 -0500 (Wed, 17 Dec 2008)
New Revision: 11850
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/resetTimeOnDateSelectTest.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5347
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2008-12-17 15:05:42 UTC (rev 11849)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2008-12-17 15:40:28 UTC (rev 11850)
@@ -85,6 +85,7 @@
public CalendarTestBean() {
selectedDate = DEFAULT_DATE;
+ defaultTime = new Date();
resetSelectedDateString();
datePattern = DATE_PATTERN;
@@ -572,4 +573,40 @@
this.disabled = disabled;
}
+ private Date defaultTime;
+
+ /**
+ * Gets value of defaultTime field.
+ * @return value of defaultTime field
+ */
+ public Date getDefaultTime() {
+ return defaultTime;
+ }
+
+ /**
+ * Set a new value for defaultTime field.
+ * @param defaultTime a new value for defaultTime field
+ */
+ public void setDefaultTime(Date defaultTime) {
+ this.defaultTime = defaultTime;
+ }
+
+ private boolean resetTimeOnDateSelect;
+
+ /**
+ * Gets value of resetTimeOnDateSelect field.
+ * @return value of resetTimeOnDateSelect field
+ */
+ public boolean isResetTimeOnDateSelect() {
+ return resetTimeOnDateSelect;
+ }
+
+ /**
+ * Set a new value for resetTimeOnDateSelect field.
+ * @param resetTimeOnDateSelect a new value for resetTimeOnDateSelect field
+ */
+ public void setResetTimeOnDateSelect(boolean resetTimeOnDateSelect) {
+ this.resetTimeOnDateSelect = resetTimeOnDateSelect;
+ }
+
}
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/resetTimeOnDateSelectTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/resetTimeOnDateSelectTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-17 15:05:42 UTC (rev 11849)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-17 15:40:28 UTC (rev 11850)
@@ -67,6 +67,8 @@
static final String IMMEDIATE_TEST_URL = "pages/calendar/testImmediate.xhtml";
+ static final String RESET_TIME_ON_DATE_SELECTION_TEST_URL = "pages/calendar/resetTimeOnDateSelectTest.xhtml";
+
static final String CONTROLS_FORM_ID = "_controls:";
static final String availableDayCellClass = "rich-calendar-cell-size rich-calendar-cell rich-calendar-btn";
@@ -172,6 +174,10 @@
String isDisabledId;
+ String defaultTimeId;
+
+ String resetTimeOnDateSelectId;
+
void initIds(String parentId) {
calendarId = parentId + FORM_ID + "calendar";
calendarHeaderId = calendarId + "Header";
@@ -215,6 +221,8 @@
calendarMessageId = parentId + FORM_ID + "calendarMsg";
firstWeekDayId = parentId + FORM_ID + "firstWeekDay";
isDisabledId = parentId + FORM_ID + "isDisabled";
+ defaultTimeId = parentId + CONTROLS_FORM_ID + "defaultTime";
+ resetTimeOnDateSelectId = parentId + CONTROLS_FORM_ID + "resetTimeOnDateSelect";
}
String getStatus() {
@@ -1445,10 +1453,58 @@
Assert.assertEquals(selenium.getElementWidth(calendarId + "DayCell5").intValue(), expectedCellWidth);
}
+ @Test
+ public void testResetTimeOnDateSelect(Template template) {
+ renderPage(RESET_TIME_ON_DATE_SELECTION_TEST_URL, template, null);
+ initIds(getParentId());
+
+ String expectedDefaultTime = "05/05/2007 13:13";
+ String notEmptySelectedDate = "04/04/2006 10:00";
+
+ writeStatus("Check 'defaultTime' and 'resetTimeOnDateSelect' attributes");
+
+ writeStatus("Check time of selected date replaced by defaultTime in case of 'resetTimeOnDateSelect' attribute being true");
+ setValueById(defaultTimeId, expectedDefaultTime);
+ setValueById(selectedDateId, notEmptySelectedDate);
+ checkWithoutClick(resetTimeOnDateSelectId, true);
+ ajaxSetup();
+
+ selenium.click(todayControlXpath + "/div");
+ String actualSelectedDate = selenium.getValue(inputDateId);
+ //current date time with time replaced by default time
+ String expectedReplacedTodaySelectedDate = new SimpleDateFormat("MM/dd/yyyy").format(new Date()) + " 13:13";
+ Assert.assertEquals(actualSelectedDate, expectedReplacedTodaySelectedDate);
+
+ writeStatus("Check time of selected date replaced by defaultTime if value (selected date) is empty");
+ setValueById(selectedDateId, "");
+ checkWithoutClick(resetTimeOnDateSelectId, false);
+ ajaxSetup();
+
+ selenium.click(todayControlXpath + "/div");
+ actualSelectedDate = selenium.getValue(inputDateId);
+ expectedReplacedTodaySelectedDate = new SimpleDateFormat("MM/dd/yyyy").format(new Date()) + " 13:13";
+ Assert.assertEquals(actualSelectedDate, expectedReplacedTodaySelectedDate);
+
+ writeStatus("if value (selected date) is not empty and resetTimeOnDateSelect' attribute is not true then nothing happens");
+ setValueById(selectedDateId, notEmptySelectedDate);
+ checkWithoutClick(resetTimeOnDateSelectId, false);
+ ajaxSetup();
+
+ selenium.click(todayControlXpath + "/div");
+ actualSelectedDate = selenium.getValue(inputDateId);
+ String expectedTodaySelectedDate = new SimpleDateFormat("MM/dd/yyyy").format(new Date()) + " 10:10";
+ //side effect of https://jira.jboss.org/jira/browse/RF-5221
+ Assert.assertEquals(actualSelectedDate, expectedTodaySelectedDate);
+ }
+
private void setPopup(boolean isPopup) {
runScript("$('" + isPopupId + "').checked=" + isPopup);
}
+ private void checkWithoutClick(String id, boolean isChecked) {
+ runScript("$('" + id + "').checked=" + isChecked);
+ }
+
private boolean check(String checkBoxId, boolean isChecked) {
boolean prevValue = Boolean.parseBoolean(runScript("$('" + checkBoxId + "').checked"));
if (prevValue != isChecked) {
17 years, 5 months
JBoss Rich Faces SVN: r11849 - trunk/samples/richfaces-demo.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-17 10:05:42 -0500 (Wed, 17 Dec 2008)
New Revision: 11849
Modified:
trunk/samples/richfaces-demo/pom.xml
Log:
Additional excludes added to richfaces-demo pom.xml
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2008-12-17 14:37:11 UTC (rev 11848)
+++ trunk/samples/richfaces-demo/pom.xml 2008-12-17 15:05:42 UTC (rev 11849)
@@ -130,6 +130,7 @@
<webappDirectory>${project.build.directory}/${project.build.finalName}-jee5</webappDirectory>
<classifier>jee5</classifier>
<packagingExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/el-*</packagingExcludes>
+ <warSourceExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/el-*</warSourceExcludes>
</configuration>
</execution>
<execution>
@@ -142,6 +143,7 @@
<webappDirectory>${project.build.directory}/${project.build.finalName}-tomcat6</webappDirectory>
<classifier>tomcat6</classifier>
<packagingExcludes>WEB-INF/lib/el-*</packagingExcludes>
+ <warSourceExcludes>WEB-INF/lib/el-*</warSourceExcludes>
</configuration>
</execution>
</executions>
17 years, 5 months
JBoss Rich Faces SVN: r11848 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-12-17 09:37:11 -0500 (Wed, 17 Dec 2008)
New Revision: 11848
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-5400
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-17 14:18:12 UTC (rev 11847)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/editTable.xhtml 2008-12-17 14:37:11 UTC (rev 11848)
@@ -6,6 +6,7 @@
xmlns:rich="http://richfaces.org/rich">
<h:form>
+ <a4j:region>
<rich:dataTable value="#{dataTableScrollerBean.allCars}"
var="category" rows="20" rowKeyVar="row"
ajaxKeys="#{dataTableScrollerBean.keys}" id="table">
@@ -51,7 +52,7 @@
<rich:column>
<f:facet name="header">
Actions
- </f:facet>
+ </f:facet>
<a4j:commandLink ajaxSingle="true" id="editlink"
oncomplete="#{rich:component('editPanel')}.show()">
<h:graphicImage value="/images/icons/edit.gif" style="border:0"/>
@@ -73,6 +74,7 @@
<rich:datascroller renderIfSinglePage="false" maxPages="5"/>
</f:facet>
</rich:dataTable>
+ </a4j:region>
</h:form>
<rich:modalPanel id="editPanel" autosized="true">
@@ -128,6 +130,13 @@
</h:panelGrid>
</h:form>
</rich:modalPanel>
+ <a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()"/>
+ <rich:modalPanel id="wait" autosized="true" width="200" height="120" moveable="false" resizeable="false">
+ <f:facet name="header">
+ <h:outputText value="Processing"/>
+ </f:facet>
+ <h:outputText value="Wait Please..."/>
+ </rich:modalPanel>
<rich:messages></rich:messages>
</ui:composition>
17 years, 5 months
JBoss Rich Faces SVN: r11847 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-12-17 09:18:12 -0500 (Wed, 17 Dec 2008)
New Revision: 11847
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-5246
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml 2008-12-17 14:09:37 UTC (rev 11846)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree-dnd.xhtml 2008-12-17 14:18:12 UTC (rev 11847)
@@ -7,17 +7,33 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
-
<p>
- Tree Dnd Example
+ This example shows the built-in tree drag and drop functionality
+ and also demonstrates drag and drop from outside the tree to some
+ of its nodes.
</p>
-
+ <ul>
+ <li>
+ Select "Unsorted" node to see all the pictures in preview panel
+ from the right. Then you could drag and drop any picture to any other
+ node.
+ </li>
+ <li>
+ Or you could expand some node with pictures and drag and drop
+ just the leaves between the nodes.
+ </li>
+ </ul>
<div class="sample-container" >
<ui:include src="/richfaces/tree/examples/simpleDnd.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/tree/examples/simpleDnd.xhtml"/>
<ui:param name="openlabel" value="View Source" />
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/tree/SimpleTreeDndBean.java"/>
+ <ui:param name="openlabel" value="View SimpleTreeDndBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
</div>
</ui:define>
</ui:composition>
17 years, 5 months
JBoss Rich Faces SVN: r11846 - trunk/ui/combobox/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-12-17 09:09:37 -0500 (Wed, 17 Dec 2008)
New Revision: 11846
Modified:
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4532
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-12-17 13:41:18 UTC (rev 11845)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-12-17 14:09:37 UTC (rev 11846)
@@ -275,7 +275,7 @@
<script type="text/javascript">
var clientId = '#{clientId}';
- RichComboUtils.execOnLoad( function(){
+
var comboboxUserStyles = {
button : {
@@ -353,7 +353,6 @@
"#{defaultLabel}",
#{disabled}, #{convertedValue},
#{component.attributes["showDelay"]}, #{component.attributes["hideDelay"]});
- }, RichComboUtils.Condition.ElementPresent("#{clientId}"), 100);
</script>
</div>
</f:root>
\ No newline at end of file
17 years, 5 months
JBoss Rich Faces SVN: r11845 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-17 08:41:18 -0500 (Wed, 17 Dec 2008)
New Revision: 11845
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
Log:
RF-5287: describeInputNumberSlider 2 new features
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml 2008-12-17 12:42:42 UTC (rev 11844)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml 2008-12-17 13:41:18 UTC (rev 11845)
@@ -14,12 +14,12 @@
</sectioninfo>
<section>
<title>Description</title>
- <para>The component lets selecting a number from a numeric region. It's a horizontal
- aligned scroll-like control with its own input field (optional) present. The keyboard input in a
+ <para>The component lets selecting a number from a numeric region. It's a horizontal or vertical
+ oriented scroll-like control with its own input field (optional) present. The keyboard input in a
field is possible (optional). Also it's possible to see the current value in the toolTip
above a dragged handle control.</para>
<figure>
- <title><emphasis role="bold"><property><rich:inputNumberSlider></property></emphasis> component</title>
+ <title><emphasis role="bold"><property><rich:inputNumberSlider></property></emphasis> component, horizontal and vertical views</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/inputNumberSlider_init.png"/>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2008-12-17 12:42:42 UTC (rev 11844)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2008-12-17 13:41:18 UTC (rev 11845)
@@ -226,12 +226,9 @@
the messages. For example, {1} for
<code>"DoubleRangeValidator.MAXIMUM"</code>
, {2} for
- <code>"ShortConverter.SHORT"</code>
- .
+ <code>"ShortConverter.SHORT"</code>.
</para>
-
- <para>
- Using the
+ <!-- <para>Using the
<emphasis>
<property>"orientation"</property>
</emphasis>
@@ -254,46 +251,24 @@
<imagedata fileref="images/inputNumberSlider_vertical.png" />
</imageobject>
</mediaobject>
- </figure>
-
- <para>
- Using the
- <emphasis>
- <property>"showArrows"</property>
- </emphasis>
- attribute (default is "false")
- possible to display 2 controls that increase/decrease the value by the
- defined step width, when they are clicked. When the mouse button is clicked and pressed,
- the pointer is moved with a delay set in miliseconds in<emphasis>
- <property>"delay"</property>
- </emphasis> attribute.
- </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[
- <rich:inputNumberSlider minValue="0"
- maxValue="100"
- showInput="false"
- showArrows="true"
- delay="150"/>
- ]]></programlisting>
- <para>It's displayed at page like:</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><&slider;></property>
- </emphasis>
- with horizontal arrows.
- </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/inputNumberSlider_arrows.png" />
- </imageobject>
- </mediaobject>
- </figure>
-
+ </figure>-->
+
+ <para><emphasis><property>"showArrows"</property></emphasis>.
+ When set to "true", this boolean attribute enables additional controls for increasing and decreasing slider value.
+ The controls (arrows by default) are placed in the beginning and in the end of slider track:</para>
+ <figure>
+ <title><emphasis role="bold"><property><rich:inputNumberSlider></property></emphasis> with additional controls</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/inputNumberSlider4.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Clicking an arrow changes the driven value on the amount defined with <emphasis><property>"step"</property></emphasis> attribute.
+ Keepeng an arrow control pressed changes the value continuous.
+ Time that value takes to change from one step to another is definded with <emphasis><property>"delay"</property></emphasis> attribute.
+ </para>
+
</section>
<section>
<title>Look-and-Feel Customization</title>
@@ -472,9 +447,7 @@
<section>
<title>Definition of Custom Style Classes</title>
- <para>
- On the screenshot there are classes names that define styles
- for component elements.
+ <para>Style classes names that define styles for component elements are shown on the picture below:
</para>
<figure>
@@ -485,17 +458,8 @@
fileref="images/inputNumberSlider_cn.png" />
</imageobject>
</mediaobject>
- </figure>
+ </figure>
- <figure>
- <title>Style classes for increase/decrease</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/inputNumberSlider_cn_vertical.png" />
- </imageobject>
- </mediaobject>
- </figure>
<table id="tab_cn">
<title>
17 years, 5 months
JBoss Rich Faces SVN: r11844 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-17 07:42:42 -0500 (Wed, 17 Dec 2008)
New Revision: 11844
Modified:
trunk/docs/userguide/en/src/main/resources/images/inputNumberSlider_cn.png
Log:
RF-5287: describeInputNumberSlider 2 new features
Modified: trunk/docs/userguide/en/src/main/resources/images/inputNumberSlider_cn.png
===================================================================
(Binary files differ)
17 years, 5 months