T
- Value typeB
- Concrete builder typepublic interface CalendarInputBuilder<T,B extends CalendarInputBuilder<T,B>> extends InputBuilder<T,Input<T>,B>
Input
s rendered as a calendar (inline or in a popup activated by a button) in UI.InputConfigurator.BaseFieldConfigurator<T>
ComponentConfigurator.BaseComponentConfigurator
Modifier and Type | Method and Description |
---|---|
B |
dateFormat(String dateFormat)
Sets date format to use for internal component date display.
|
B |
dateOutOfRangeMessage(com.holonplatform.core.i18n.Localizable dateOutOfRangeMessage)
Sets the error message to notify if the range validation fails, using a
Localizable message. |
B |
dateOutOfRangeMessage(String dateOutOfRangeMessage)
Sets the error message to notify if the range validation fails.
|
B |
dateOutOfRangeMessage(String defaultDateOutOfRangeMessage,
String messageCode,
Object... arguments)
Sets the error message to notify if the range validation fails, using a localizable
messageCode . |
B |
lenient(boolean lenient)
Specifies whether or not date/time interpretation in component is to be lenient.
|
B |
parseErrorMessage(com.holonplatform.core.i18n.Localizable parseErrorMessage)
Sets the default error message used if the DateField cannot parse the text input by user to a Date field, using a
Localizable message. |
B |
parseErrorMessage(String parsingErrorMessage)
Sets the default error message used if the DateField cannot parse the text input by user to a Date field.
|
B |
parseErrorMessage(String defaultParseErrorMessage,
String messageCode,
Object... arguments)
Sets the default error message used if the DateField cannot parse the text input by user to a Date field, using a
localizable
messageCode . |
B |
rangeEnd(T end)
Sets the end range for this component.
|
B |
rangeStart(T start)
Sets the start range for this component.
|
B |
showISOWeekNumbers(boolean showWeekNumbers)
Sets the visibility of ISO 8601 week numbers in the date selector.
|
B |
timeZone(TimeZone timeZone)
Sets the time zone used by this date field.
|
asField, build, deferLocalization, dragSource, dropTarget, validatable
locale, readOnly, tabIndex, withValue, withValueChangeListener
caption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListener
B dateFormat(String dateFormat)
dateFormat
- the dateFormat to setB parseErrorMessage(String parsingErrorMessage)
parsingErrorMessage
- Parse error messageB parseErrorMessage(String defaultParseErrorMessage, String messageCode, Object... arguments)
messageCode
.
For message localization, a LocalizationContext
must be available and localized as Context
resource when component is built.
defaultParseErrorMessage
- Default error message if no translation is available for given
messageCode
for current Locale.messageCode
- Parse error message translation message keyarguments
- Optional translation argumentsB parseErrorMessage(com.holonplatform.core.i18n.Localizable parseErrorMessage)
Localizable
message.
For message localization, a LocalizationContext
must be available and localized as Context
resource when component is built.
parseErrorMessage
- Localizable error messageB lenient(boolean lenient)
lenient
- true if the lenient mode is to be turned on; false if it is to be turned off.Calendar.setLenient(boolean)
B showISOWeekNumbers(boolean showWeekNumbers)
showWeekNumbers
- true if week numbers should be shown, false otherwise.B timeZone(TimeZone timeZone)
timeZone
- the time zone to use for time calculations.B rangeStart(T start)
start
is set to null
, any value before end range will be accepted by the
range.start
- the allowed range's start date/time (inclusive)B rangeEnd(T end)
end
is set to null
, any value after start range will be accepted by the range.end
- the allowed range's end date (inclusive)B dateOutOfRangeMessage(String dateOutOfRangeMessage)
dateOutOfRangeMessage
- Localizable message which is shown when value (the date) is set outside allowed
rangeB dateOutOfRangeMessage(String defaultDateOutOfRangeMessage, String messageCode, Object... arguments)
messageCode
.
For caption localization, a LocalizationContext
must be available and localized as Context
resource when component is built.
defaultDateOutOfRangeMessage
- Default error message if no translation is available for given
messageCode
for current Locale.messageCode
- Date out of range message translation message keyarguments
- Optional translation argumentsB dateOutOfRangeMessage(com.holonplatform.core.i18n.Localizable dateOutOfRangeMessage)
Localizable
message.
For caption localization, a LocalizationContext
must be available and localized as Context
resource when component is built.
dateOutOfRangeMessage
- Localizable error messageCopyright © 2018 The Holon Platform. All rights reserved.