XdevInlineDateField
The XdevInlineDateField is a date selector that contains a monthly overview for selecting or displaying an individual date. With the help of the control bar, you can navigate back and forth by month and year. The XdevInlineDateField is a form component and can be persisted via the XdevFieldGroup.
Important properties:
RangeStart - Only the period after this date is visible.
RangeEnd - Only the period up to this date is visible.
ResolutionÂ
null - Calendar with day view (like DAY).
SECONDÂ - Additional time display accurate to the second.
- MINUTEÂ - Additional time display accurate to the minute.
- HOURÂ -Â Additional time display accurate to the hour.
- DAY - Standard view. Calendar with day view.
- MONTHÂ -Â The control bar but not the calendar is displayed. You can use the control bar to navigate back and forth by month.
- YEAR - Only the control bar without calendar is displayed, with which you can navigate back and forth by year. Â
ShowISOWeekNumbers -Â Shows the respective calendar weeks.
- TimeZone - Determines a fixed time zone. When null is selected, the local timezone is automatically applied.Â
- DateFormat- Specify the format of the date and time by specifying the corresponding ISO format characters, e.g. dd.MM.yyyy for the date and hh:mm for the time. When null is selected, the local standard format is automatically applied.
Lenient -Â Accepts different date formats.
 Â
Important events:
valueChange - Is triggered when the selection has been changed.Â
Examples:
Allocate date - Allocates the date to the XdevinlineDateField. This triggers a valueChange event.
// Creates a date 1979-7-5 Date dateOfBirth = new Date(79,6,5); // Sets the date to the inlineDateField inlineDateField.setValue(dateOfBirth);
Read dateÂ
Date date = inlineDateField.getValue();
Reset selection - Sets the selection to the initial state. This triggers a valueChange event.
inlineDateField.clear();
Set focus - Allocates the focus to the XdevPopupDateField. This can trigger a focus event, if necessary.
inlineDateField.focus();
Note:
- Date methods deprecated - A number of different methods for the Date class are indicated as deprecated. However, Vaadin currently supports only the Date class.
Go to XdevInlineDateField Javadoc
XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.