public class VDateTimeFieldCalendar extends VAbstractDateFieldCalendar<VDateTimeCalendarPanel,DateTimeResolution>
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcalendarPanelbufferedDateString, bufferedResolutions, CLASSNAME, client, connector, currentLocale, dts, enabled, readonly, rpc, showISOWeekNumbers| Constructor and Description |
|---|
VDateTimeFieldCalendar()
Constructs a widget for the InlineDateTimeField component.
|
| Modifier and Type | Method and Description |
|---|---|
protected DateTimeResolution[] |
doGetResolutions()
Returns all available resolutions as an array.
|
protected Date |
getDate(Map<DateTimeResolution,Integer> dateValues)
Returns a date based on the provided date values map.
|
boolean |
isYear(DateTimeResolution resolution)
Checks whether the given
resolution represents an year. |
String |
resolutionAsString()
Returns a current resolution as a string.
|
protected boolean |
supportsTime()
Checks whether time is supported by this widget.
|
void |
updateBufferedValues()
Update buffered values
VDateField.bufferedDateString and
VDateField.bufferedResolutions that will be sent to the server. |
void |
updateValueFromPanel()
Update buffered values and send them (if any) to the server.
|
getTabIndex, setTabIndexgetClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getDefaultDate, getId, getResolutions, getResolutionVariable, isEnabled, isReadonly, isShowISOWeekNumbers, sendBufferedValues, sendBufferedValuesWithDelay, setCurrentDate, setCurrentDate, setCurrentLocale, setCurrentResolution, setDate, setDefaultDate, setDefaultDate, setEnabled, 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, onAttach, onBrowserEvent, onDetach, 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, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorpublic VDateTimeFieldCalendar()
public void updateBufferedValues()
VDateFieldVDateField.bufferedDateString and
VDateField.bufferedResolutions that will be sent to the server.
This method should NOT send values to the server.
This method can be implemented by subclasses to update buffered values from component values.
updateBufferedValues in class VDateField<DateTimeResolution>public void updateValueFromPanel()
VAbstractDateFieldCalendarupdateValueFromPanel in class VAbstractDateFieldCalendar<VDateTimeCalendarPanel,DateTimeResolution>public String resolutionAsString()
VDateFieldThe method is used to generate a style name for the current resolution.
resolutionAsString in class VDateField<DateTimeResolution>public boolean isYear(DateTimeResolution resolution)
VDateFieldresolution represents an year.isYear in class VDateField<DateTimeResolution>resolution - the given resolutiontrue if the resolution represents an yearprotected Date getDate(Map<DateTimeResolution,Integer> dateValues)
VDateFieldgetDate in class VDateField<DateTimeResolution>dateValues - a map with date values to convert into a dateVDateField.setCurrentDate(Map)protected DateTimeResolution[] doGetResolutions()
VDateField
No any order is required (in contrary to VDateField.getResolutions().
doGetResolutions in class VDateField<DateTimeResolution>VDateField.getResolutions()protected boolean supportsTime()
VDateFieldsupportsTime in class VDateField<DateTimeResolution>true if time is supported in addition to date,
false if only dates are supportedCopyright © 2023 Vaadin Ltd. All rights reserved.