public final class DateTextFieldConfig extends AbstractConfig
DateTextField configurations.| Modifier and Type | Class and Description |
|---|---|
static class |
DateTextFieldConfig.Day
holds all week days in a specific sort order.
|
static class |
DateTextFieldConfig.View
holds all view options.
|
AbstractConfig.IKey<T>| Constructor and Description |
|---|
DateTextFieldConfig()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
DateTextFieldConfig |
allowKeyboardNavigation(boolean value)
Whether or not to allow date navigation by arrow keys.
|
DateTextFieldConfig |
autoClose(boolean value)
Whether or not to close the datepicker immediately when a date is selected.
|
DateTextFieldConfig |
forceParse(boolean value)
Whether or not to force parsing of the input value when the picker is closed.
|
String |
getFormat() |
String |
getLanguage() |
DateTextFieldConfig |
highlightToday(boolean value)
If true, highlights the current date.
|
boolean |
isDefaultLanguageSet() |
DateTextFieldConfig |
showTodayButton(boolean value)
If true, displays a "Today" button at the bottom of the datepicker to select
the current date.
|
DateTextFieldConfig |
withEndDate(org.joda.time.DateTime value)
The latest date that may be selected; all later dates will be disabled.
|
DateTextFieldConfig |
withFormat(String value)
The date format (java style), combination of d, dd, m, mm, M, MM, yy, yyyy.
|
DateTextFieldConfig |
withLanguage(String value)
The two-letter code of the language to use for month and day names.
|
DateTextFieldConfig |
withStartDate(org.joda.time.DateTime value)
The earliest date that may be selected; all earlier dates will be disabled.
|
DateTextFieldConfig |
withView(DateTextFieldConfig.View value)
The view that the datepicker should show when it is opened.
|
DateTextFieldConfig |
withWeekStart(DateTextFieldConfig.Day value)
Day of the week start. 0 (Sunday) to 6 (Saturday)
|
all, getString, isEmpty, newKey, put, remove, toJsonString, wrappublic String getFormat()
public String getLanguage()
public boolean isDefaultLanguageSet()
public DateTextFieldConfig withStartDate(org.joda.time.DateTime value)
value - the earliest start datepublic DateTextFieldConfig withEndDate(org.joda.time.DateTime value)
value - the latest end datepublic DateTextFieldConfig withLanguage(String value)
value - two letter language code (optional 5 letter code like de_DE)public DateTextFieldConfig withView(DateTextFieldConfig.View value)
value - the start view to usepublic DateTextFieldConfig withFormat(String value)
value - The date format value (java style)public DateTextFieldConfig withWeekStart(DateTextFieldConfig.Day value)
value - the DateTextFieldConfig.Day the week startspublic DateTextFieldConfig allowKeyboardNavigation(boolean value)
value - true, if keyboard navigation is allowedpublic DateTextFieldConfig highlightToday(boolean value)
value - If true, highlights the current date.public DateTextFieldConfig showTodayButton(boolean value)
value - whether to show today button or notpublic DateTextFieldConfig forceParse(boolean value)
value - Whether or not to force parsing of the input value when the picker is closedpublic DateTextFieldConfig autoClose(boolean value)
value - true, if datepicker should close immediately when date is selected.Copyright © 2013 agilecoders.de. All Rights Reserved.