public class VPopupCalendar extends VAbstractPopupCalendar<VDateCalendarPanel,DateResolution>
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcalendar, calendarToggle, parsable, popupformatStr, lenient, textCLASSNAME, client, currentLocale, dts, enabled, paintableId, readonly, showISOWeekNumbers| Constructor and Description |
|---|
VPopupCalendar() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
cleanFormat(String format)
Clean date format string to make it suitable for
VAbstractTextualDate.getFormatString(). |
protected DateResolution[] |
doGetResolutions()
Returns all available resolutions as an array.
|
protected Date |
getDate(Map<DateResolution,Integer> dateValues)
Returns a date based on the provided date values map.
|
boolean |
isYear(DateResolution resolution)
Checks whether the given
resolution represents an year. |
static Date |
makeDate(Map<DateResolution,Integer> dateValues) |
String |
resolutionAsString()
Returns a current resolution as a string.
|
void |
setCurrentResolution(DateResolution resolution) |
protected void |
updateDateVariables()
Updates variables to send a response to the server.
|
bindAriaCaption, buildDate, buildDate, closeCalendarPanel, getDescriptionForAssistiveDevices, getOpenCalenderPanelKey, getSubPartElement, getSubPartName, isTextFieldEnabled, onAttach, onBrowserEvent, onClick, onClose, onDetach, openCalendarPanel, setDescriptionForAssistiveDevices, setEnabled, setFocus, setFocusedDate, setRangeEnd, setRangeStart, setStyleName, setStylePrimaryName, setTextFieldEnabled, setTextFieldTabIndex, updateStyleNames, updateTextFieldEnabled, updateValuefocus, getFormatString, getPlaceHolder, getText, onChange, onKeyDown, setAriaInvalid, setAriaRequired, setPlaceholder, setTextgetClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getId, getResolutions, getResolutionVariable, isEnabled, isReadonly, isShowISOWeekNumbers, setCurrentDate, setCurrentDate, setCurrentLocale, setDate, setReadonly, setShowISOWeekNumbersadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorprotected DateResolution[] doGetResolutions()
VDateField
No any order is required (in contrary to VDateField.getResolutions().
doGetResolutions in class VDateField<DateResolution>VDateField.getResolutions()public String resolutionAsString()
VDateFieldThe method is used to generate a style name for the current resolution.
resolutionAsString in class VDateField<DateResolution>public void setCurrentResolution(DateResolution resolution)
setCurrentResolution in class VDateField<DateResolution>public static Date makeDate(Map<DateResolution,Integer> dateValues)
public boolean isYear(DateResolution resolution)
VDateFieldresolution represents an year.isYear in class VDateField<DateResolution>resolution - the given resolutiontrue if the resolution represents an yearprotected Date getDate(Map<DateResolution,Integer> dateValues)
VDateFieldgetDate in class VDateField<DateResolution>dateValues - a map with date values to convert into a dateVDateField.setCurrentDate(Map)protected void updateDateVariables()
VAbstractTextualDate
The method can be overridden by subclasses to provide a custom logic for
date variables to avoid overriding the VAbstractTextualDate.onChange(ChangeEvent)
method.
updateDateVariables in class VAbstractTextualDate<DateResolution>protected String cleanFormat(String format)
VAbstractTextualDateVAbstractTextualDate.getFormatString().cleanFormat in class VAbstractTextualDate<DateResolution>format - date format stringVAbstractTextualDate.getFormatString()Copyright © 2017 Vaadin Ltd. All rights reserved.