| org.apache.wicket.markup.html.form.TextField org.apache.wicket.datetime.markup.html.form.DateTextField
DateTextField | public class DateTextField extends TextField implements ITextFormatProvider(Code) | | A TextField that is mapped to a java.util.Date object and that
uses Joda time to parse and format values.
You should use on of the factory methods to construct the kind you want or
use the public constructor and pass in the converter to use.
This component tries to apply the time zone difference between the client and
server. See the
DateConverter.getApplyTimeZoneDifference date converter of this
package for more information on that.
See Also: StyleDateConverter See Also: DateTime See Also: DateTimeFormat See Also: DateTimeZone author: eelcohillenius |
Method Summary | |
public static DateTextField | forDatePattern(String id, IModel model, String datePattern) Creates a new DateTextField defaulting to using a short date pattern
Parameters: id - The id of the text field Parameters: model - The model Parameters: datePattern - The pattern to use. | public static DateTextField | forDatePattern(String id, String datePattern) Creates a new DateTextField defaulting to using a short date pattern
Parameters: id - The id of the text field Parameters: datePattern - The pattern to use. | public static DateTextField | forDateStyle(String id, IModel model, String dateStyle) Creates a new DateTextField using the provided date style.
Parameters: id - The id of the text field Parameters: model - The model Parameters: dateStyle - Date style to use. | public static DateTextField | forDateStyle(String id, String dateStyle) Creates a new DateTextField using the provided date style.
Parameters: id - The id of the text field Parameters: dateStyle - Date style to use. | public static DateTextField | forShortStyle(String id) | public static DateTextField | forShortStyle(String id, IModel model) | final public IConverter | getConverter(Class clazz) | final public String | getTextFormat() | public static DateTextField | withConverter(String id, DateConverter converter) Creates a new DateTextField using the provided converter. | public static DateTextField | withConverter(String id, IModel model, DateConverter converter) Creates a new DateTextField using the provided converter. |
DateTextField | public DateTextField(String id, IModel model, DateConverter converter)(Code) | | Construct with a converter.
Parameters: The - component id Parameters: The - model Parameters: converter - The converter to use |
forDateStyle | public static DateTextField forDateStyle(String id, IModel model, String dateStyle)(Code) | | Creates a new DateTextField using the provided date style.
Parameters: id - The id of the text field Parameters: model - The model Parameters: dateStyle - Date style to use. The first character is the date style, andthe second character is the time style. Specify a character of'S' for short style, 'M' for medium, 'L' for long, and 'F' forfull. A date or time may be ommitted by specifying a stylecharacter '-'. See DateTimeFormat.forStyle(String). See Also: org.apache.wicket.markup.html.form.TextField |
forDateStyle | public static DateTextField forDateStyle(String id, String dateStyle)(Code) | | Creates a new DateTextField using the provided date style.
Parameters: id - The id of the text field Parameters: dateStyle - Date style to use. The first character is the date style, andthe second character is the time style. Specify a character of'S' for short style, 'M' for medium, 'L' for long, and 'F' forfull. A date or time may be ommitted by specifying a stylecharacter '-'. See DateTimeFormat.forStyle(String). See Also: org.apache.wicket.markup.html.form.TextField |
getTextFormat | final public String getTextFormat()(Code) | | See Also: org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProvider.getTextFormat |
|
|