/** * Creates a new DateTextField using the provided date style. * * @param id * The id of the text field * @param dateStyle * 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 {@link DateTimeFormat#forStyle(String)}. * @return DateTextField */ public static DateTextField forDateStyle(String id, String dateStyle) { return forDateStyle(id, null, dateStyle); }
/** * Creates a new DateTextField using the provided date style. * * @param id * The id of the text field * @param dateStyle * 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 {@link DateTimeFormat#forStyle(String)}. * @return DateTextField */ public static DateTextField forDateStyle(String id, String dateStyle) { return forDateStyle(id, null, dateStyle); }