Author: msorokin
Date: 2008-04-14 12:35:01 -0400 (Mon, 14 Apr 2008)
New Revision: 7821
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-2220
Default and possible values for the calendar component were added.
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-14 16:33:34 UTC (rev
7820)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2008-04-14 16:35:01 UTC (rev
7821)
@@ -64,14 +64,14 @@
<property>
<name>locale</name>
<classname>java.lang.Object</classname>
- <description>Used for locale definition</description>
+ <description>Used for locale definition. Default value is
"getDefaultLocale()".</description>
<defaultvalue>getDefaultLocale()</defaultvalue>
</property>
<property elonly="true">
<name>timeZone</name>
<classname>java.util.TimeZone</classname>
<description>
- Used for current date calculations
+ Used for current date calculations. Default value is
"getDefaultTimeZone()".
</description>
<defaultvalue>getDefaultTimeZone()</defaultvalue>
</property>
@@ -80,7 +80,7 @@
<classname>java.lang.Object</classname>
<description>
Define the initial range of date which will be loaded to
- client from dataModel under rendering
+ client from dataModel under rendering. Default value is
"getDefaultPreloadBegin(getCurrentDateOrDefault())".
</description>
<defaultvalue>
getDefaultPreloadBegin(getCurrentDateOrDefault())
@@ -91,7 +91,7 @@
<classname>java.lang.Object</classname>
<description>
Defines the last range of date which will be loaded to
- client from dataModel under rendering
+ client from dataModel under rendering. Default value is
"getDefaultPreloadEnd(getCurrentDateOrDefault())".
</description>
<defaultvalue>
getDefaultPreloadEnd(getCurrentDateOrDefault())
@@ -113,7 +113,7 @@
<property>
<name>datePattern</name>
<classname>java.lang.String</classname>
- <description>Defines date pattern</description>
+ <description>Defines date pattern. Default value is "MMM d,
yyyy".</description>
<defaultvalue>"MMM d, yyyy"</defaultvalue>
</property>
@@ -122,7 +122,7 @@
<classname>boolean</classname>
<description>
If "true" calendar will be rendered initially
- as hidden with additional elements for calling as popup
+ as hidden with additional elements for calling as popup. Default value is
"true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -131,7 +131,7 @@
<classname>boolean</classname>
<description>
If "true", rendered is disabled. In
- "popup" mode both controls are disabled
+ "popup" mode both controls are disabled. Default value is
"false".
</description>
<defaultvalue>false</defaultvalue>
</property>
@@ -141,7 +141,7 @@
<description>
Set the corner of the button for the popup to be
connected with (top-left, top-right, bottom-left
- (Default), bottom-right, auto)
+ (Default), bottom-right, auto). Default value is "bottom-left".
</description>
<defaultvalue>"bottom-left"</defaultvalue>
</property>
@@ -150,7 +150,7 @@
<classname>java.lang.String</classname>
<description>
Defines direction of the calendar popup (top-left,
- top-right, bottom-left, bottom-right (Default), auto)
+ top-right, bottom-left, bottom-right (Default), auto). Default value is
"bottom-right".
</description>
<defaultvalue>"bottom-right"</defaultvalue>
</property>
@@ -193,7 +193,7 @@
<description>
Used to specify mode to load tooltips. Valid values are
"none", "single" and
- "batch"
+ "batch" Default value is "batch".
</description>
<defaultvalue>"batch"</defaultvalue>
</property>
@@ -206,7 +206,7 @@
gray colored, "scroll" boundaries work as
month scrolling controls, and "select"
boundaries work in the same way as "scroll"
- but with the date clicked selection
+ but with the date clicked selection. Default value is "inactive".
</description>
<defaultvalue>"inactive"</defaultvalue>
</property>
@@ -218,7 +218,7 @@
it will be possible to change the date manualy. If
"false" value for this attribute makes a text
field "read-only", so the value can be changed
- only from a handle
+ only from a handle. Default value is "false".
</description>
<defaultvalue>false</defaultvalue>
</property>
@@ -228,7 +228,7 @@
<description>
"false" value for this attribute makes text
field invisible. If "true" - input field will
- be shown
+ be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -271,7 +271,7 @@
<classname>int</classname>
<description>
Attribute is similar to the standard HTML attribute and
- can specify window placement relative to the content
+ can specify window placement relative to the content. Default value is
"3".
</description>
<defaultvalue>3</defaultvalue>
</property>
@@ -282,7 +282,7 @@
<description>
A ValueExpression enabled attribute that, if present,
will be used as the text of the validation message for
- the "required" facility, if the "required" facility is
+ the "required" facility, if the "required"
facility is
used
</description>
</property>
@@ -418,7 +418,7 @@
<classname>boolean</classname>
<description>
if "true", submits ONLY one field/link, instead of all
- form controls
+ form controls. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -433,7 +433,7 @@
<classname>java.lang.String</classname>
<description>
Defines icon for the popup button element. The attribute
- is ignored if the "buttonLabel" is set
+ is ignored if the "buttonLabel" is set
</description>
</property>
@@ -442,7 +442,7 @@
<classname>java.lang.String</classname>
<description>
Defines label for the popup button element. If the
- attribute is set "buttonIcon" and "buttonIconDisabled"
+ attribute is set "buttonIcon" and
"buttonIconDisabled"
are ignored
</description>
</property>
@@ -452,14 +452,18 @@
<classname>java.lang.String</classname>
<description>
Defines disabled icon for the popup button element. The
- attribute is ignored if the "buttonLabel" is set
+ attribute is ignored if the "buttonLabel" is set
</description>
</property>
<property>
<name>mode</name>
<classname>java.lang.String</classname>
+
+ <description>Valid values: ajax or client. Default value is
"client".</description>
+
<defaultvalue>UICalendar.CLIENT_MODE</defaultvalue>
- <description>Valid values = ajax or client</description>
+
+
</property>
<property>
@@ -467,7 +471,7 @@
<classname>int</classname>
<description>
Sets the horizontal offset between button and calendar
- element conjunction point
+ element conjunction point. Default value is "0".
</description>
<defaultvalue>0</defaultvalue>
</property>
@@ -477,7 +481,7 @@
<classname>int</classname>
<description>
Sets the vertical offset between button and calendar
- element conjunction point
+ element conjunction point. Default value is "0".
</description>
<defaultvalue>0</defaultvalue>
</property>
@@ -518,7 +522,7 @@
<name>showWeekDaysBar</name>
<classname>boolean</classname>
<description>
- If false this bar should not be shown
+ If false this bar should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -526,7 +530,7 @@
<name>showWeeksBar</name>
<classname>boolean</classname>
<description>
- If false this bar should not be shown
+ If false this bar should not be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -534,7 +538,7 @@
<name>todayControlMode</name>
<classname>java.lang.String</classname>
<description>
- Possible values are "scroll", "select", "hidden"
+ Possible values are "scroll", "select", "hidden".
Default value is "select".
</description>
<defaultvalue>"select"</defaultvalue>
</property>
@@ -542,14 +546,14 @@
<name>showApplyButton</name>
<classname>boolean</classname>
<description>
- If false ApplyButton should not be shown
+ If false ApplyButton should not be shown. Default value is
"false".
</description>
<defaultvalue>false</defaultvalue>
</property>
<property>
<name>inputSize</name>
<classname>int</classname>
- <description>Defines the size of an input field. Similar to the
"size" attribute of h:inputText</description>
+ <description>Defines the size of an input field. Similar to the
"size" attribute of <h:inputText/></description>
</property>
<property>
<name>label</name>
@@ -560,7 +564,7 @@
<name>showHeader</name>
<classname>boolean</classname>
<description>
- If false Calendar's header should not be shown
+ If false Calendar's header should not be shown. Default value is
"true".
</description>
<defaultvalue>true</defaultvalue>
</property>
@@ -568,27 +572,27 @@
<name>showFooter</name>
<classname>boolean</classname>
<description>
- If false Calendar's footer should not be shown
+ If false Calendar's footer should not be shown. Default value is
"true".
</description>
<defaultvalue>true</defaultvalue>
- </property>
- <property>
- <name>firstWeekDay</name>
- <classname>int</classname>
- <description>Gets what the first day of the week is; e.g., SUNDAY in the U.S.,
MONDAY in France.</description>
- <defaultvalue>getDefaultFirstWeekDay()</defaultvalue>
- </property>
- <property>
- <name>minDaysInFirstWeek</name>
- <classname>int</classname>
- <description>
- Gets what the minimal days required in the first week of the year
- are; e.g., if the first week is defined as one that contains the first
- day of the first month of a year, this method returns 1. If the
- minimal days required must be a full week, this method returns 7.
- </description>
- <defaultvalue>getDefaultMinDaysInFirstWeek()</defaultvalue>
</property>
+ <property>
+ <name>firstWeekDay</name>
+ <classname>int</classname>
+ <description>Gets what the first day of the week is; e.g., SUNDAY in the U.S.,
MONDAY in France. Default value is
"getDefaultFirstWeekDay()".</description>
+ <defaultvalue>getDefaultFirstWeekDay()</defaultvalue>
+ </property>
+ <property>
+ <name>minDaysInFirstWeek</name>
+ <classname>int</classname>
+ <description>
+ Gets what the minimal days required in the first week of the year
+ are; e.g., if the first week is defined as one that contains the first
+ day of the first month of a year, this method returns 1. If the
+ minimal days required must be a full week, this method returns 7. Default value is
"getDefaultMinDaysInFirstWeek()".
+ </description>
+ <defaultvalue>getDefaultMinDaysInFirstWeek()</defaultvalue>
+ </property>
</component>
&listeners;