Author: ehillenius
Date: Sun Jul 29 14:15:34 2007
New Revision: 560820

URL: http://svn.apache.org/viewvc?view=rev&rev=560820
Log:
improved javadcos for DateTextField#forDateStyle

Modified:
    
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java

Modified: 
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java?view=diff&rev=560820&r1=560819&r2=560820
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java
 Sun Jul 29 14:15:34 2007
@@ -92,16 +92,18 @@
        }
 
        /**
-        * Creates a new DateTextField defaulting to using a short date pattern
+        * Creates a new DateTextField using the provided date style.
         * 
         * @param id
         *            The id of the text field
         * @param model
         *            The model
         * @param dateStyle
-        *            style to use in case no pattern is provided. Must be two
-        *            characters from the set {"S", "M", "L", "F", "-"}. Must 
be not
-        *            null. See [EMAIL PROTECTED] 
DateTimeFormat#forStyle(String)} for options.
+        *            Date style to use. The first character is the date style, 
and
+        *            the second character is the time style. Specify a 
character of
+        *            'S' for short style, 'M' for medium, 'L' for long, and 
'F' for
+        *            full. A date or time may be ommitted by specifying a style
+        *            character '-'. See [EMAIL PROTECTED] 
DateTimeFormat#forStyle(String)}.
         * 
         * @see org.apache.wicket.markup.html.form.TextField
         */
@@ -111,14 +113,16 @@
        }
 
        /**
-        * Creates a new DateTextField defaulting to using a short date pattern
+        * Creates a new DateTextField using the provided date style.
         * 
         * @param id
         *            The id of the text field
         * @param dateStyle
-        *            style to use in case no pattern is provided. Must be two
-        *            characters from the set {"S", "M", "L", "F", "-"}. Must 
be not
-        *            null. See [EMAIL PROTECTED] 
DateTimeFormat#forStyle(String)} for options.
+        *            Date style to use. The first character is the date style, 
and
+        *            the second character is the time style. Specify a 
character of
+        *            'S' for short style, 'M' for medium, 'L' for long, and 
'F' for
+        *            full. A date or time may be ommitted by specifying a style
+        *            character '-'. See [EMAIL PROTECTED] 
DateTimeFormat#forStyle(String)}.
         * 
         * @see org.apache.wicket.markup.html.form.TextField
         */


Reply via email to