public class VPopupCalendar extends VAbstractPopupCalendar<VDateCalendarPanel,DateResolution>
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
calendar, calendarToggle, parsable, popup
lenient, text
bufferedDateString, bufferedResolutions, CLASSNAME, client, connector, currentLocale, dts, enabled, readonly, rpc, 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 boolean |
supportsTime()
Checks whether time is supported by this widget.
|
protected void |
updateBufferedResolutions()
Updates
bufferedResolutions before
sending a response to the server. |
bindAriaCaption, buildDate, buildDate, closeCalendarPanel, getDescriptionForAssistiveDevices, getOpenCalenderPanelKey, getSubPartElement, getSubPartName, hasChildFocus, isTextFieldEnabled, onAttach, onBrowserEvent, onClick, onClose, onDetach, openCalendarPanel, setDescriptionForAssistiveDevices, setEnabled, setFocus, setFocusedDate, setRangeEnd, setRangeStart, setStyleName, setStylePrimaryName, setTextFieldEnabled, setTextFieldTabIndex, updateStyleNames, updateTextFieldEnabled, updateValue
checkGroupFocus, createFormatString, focus, getFormatString, getISODate, getPlaceHolder, getText, onChange, onKeyDown, setAriaInvalid, setAriaRequired, setFormatString, setISODate, setPlaceholder, setText, setTimeZone, updateAndSendBufferedValues, updateBufferedValues
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getDefaultDate, getId, getResolutions, getResolutionVariable, isEnabled, isReadonly, isShowISOWeekNumbers, sendBufferedValues, setCurrentDate, setCurrentDate, setCurrentLocale, setDate, setDefaultDate, setDefaultDate, setReadonly, setShowISOWeekNumbers
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
forEach, spliterator
protected DateResolution[] doGetResolutions()
VDateField
No any order is required (in contrary to VDateField.getResolutions()
.
doGetResolutions
in class VDateField<DateResolution>
VDateField.getResolutions()
public String resolutionAsString()
VDateField
The 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)
VDateField
resolution
represents an year.isYear
in class VDateField<DateResolution>
resolution
- the given resolutiontrue
if the resolution
represents an yearprotected Date getDate(Map<DateResolution,Integer> dateValues)
VDateField
getDate
in class VDateField<DateResolution>
dateValues
- a map with date values to convert into a dateVDateField.setCurrentDate(Map)
protected void updateBufferedResolutions()
VAbstractTextualDate
bufferedResolutions
before
sending a response to the server.
The method can be overridden by subclasses to provide a custom logic for
date variables to avoid overriding the VAbstractTextualDate.onChange(ChangeEvent)
method.
Note that this method should not send the buffered values. For that, use
VDateField.sendBufferedValues()
.
updateBufferedResolutions
in class VAbstractTextualDate<DateResolution>
protected String cleanFormat(String format)
VAbstractTextualDate
VAbstractTextualDate.getFormatString()
.cleanFormat
in class VAbstractTextualDate<DateResolution>
format
- date format stringVAbstractTextualDate.getFormatString()
protected boolean supportsTime()
VDateField
supportsTime
in class VDateField<DateResolution>
true
if time is supported in addition to date,
false
if only dates are supportedCopyright © 2018 Vaadin Ltd. All rights reserved.