Class JmixDateFieldWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
com.vaadin.client.ui.VDateField<R>
com.vaadin.client.ui.VAbstractTextualDate<R>
com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
com.vaadin.client.ui.VPopupCalendar
io.jmix.ui.widget.client.datefield.JmixDateFieldWidget
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler,com.google.gwt.event.dom.client.ClickHandler,com.google.gwt.event.dom.client.KeyDownHandler,com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasEnabled,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,com.vaadin.client.Focusable,com.vaadin.client.ui.aria.HandlesAriaCaption,com.vaadin.client.ui.aria.HandlesAriaInvalid,com.vaadin.client.ui.aria.HandlesAriaRequired,com.vaadin.client.ui.Field,com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner,com.vaadin.client.ui.SubPartAware,Iterable<com.google.gwt.user.client.ui.Widget>
public class JmixDateFieldWidget
extends com.vaadin.client.ui.VPopupCalendar
implements com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static final Stringprotected static final Stringprotected static final Stringprotected Dateprotected Dateprotected com.vaadin.client.ui.ShortcutActionHandlerprotected intFields inherited from class com.vaadin.client.ui.VAbstractPopupCalendar
calendar, calendarToggle, parsable, popupFields inherited from class com.vaadin.client.ui.VAbstractTextualDate
lenient, textFields inherited from class com.vaadin.client.ui.VDateField
bufferedDateString, bufferedResolutions, CLASSNAME, client, connector, currentLocale, dts, enabled, readonly, rpc, showISOWeekNumbersFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DateadjustDateByRange(Date date, Date rangeStart, Date rangeEnd) protected StringadjustStringValue(String value) voidprotected voidbuildDate(boolean forceValid) protected JmixMaskedFieldWidgetprotected StringgetImpl()com.vaadin.client.ui.ShortcutActionHandlerbooleanprotected voidonAttach()voidonBrowserEvent(com.google.gwt.user.client.Event event) protected DateparseRangeString(String dateStr) voidsetAutofill(boolean autofill) voidsetDateRangeEnd(String rangeEnd) voidsetDateRangeStart(String rangeStart) voidsetReadonly(boolean readonly) voidsetShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler) voidsetTextFieldEnabled(boolean textFieldEnabled) protected voidupdateTabIndex(int tabIndex) voidvoidupdateValue(Date newDate) Methods inherited from class com.vaadin.client.ui.VPopupCalendar
cleanFormat, doGetResolutions, getDate, isYear, makeDate, resolutionAsString, setCurrentResolution, supportsTime, updateBufferedResolutionsMethods inherited from class com.vaadin.client.ui.VAbstractPopupCalendar
bindAriaCaption, closeCalendarPanel, getDescriptionForAssistiveDevices, getOpenCalenderPanelKey, getSubPartElement, getSubPartName, hasChildFocus, isTextFieldEnabled, onClick, onClose, onDetach, openCalendarPanel, setDescriptionForAssistiveDevices, setEnabled, setFocus, setFocusedDate, setRangeEnd, setRangeStart, setStyleName, setStylePrimaryName, setTextFieldTabIndex, updateStyleNames, updateTextFieldEnabledMethods inherited from class com.vaadin.client.ui.VAbstractTextualDate
checkGroupFocus, createFormatString, focus, getFormatString, getISODate, getPlaceHolder, getText, onChange, onKeyDown, setAriaInvalid, setAriaRequired, setFormatString, setISODate, setPlaceholder, setText, setTimeZone, updateAndSendBufferedValues, updateBufferedValuesMethods inherited from class com.vaadin.client.ui.VDateField
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getDefaultDate, getId, getResolutions, getResolutionVariable, isEnabled, isReadonly, isShowISOWeekNumbers, sendBufferedValues, sendBufferedValuesWithDelay, setCurrentDate, setCurrentDate, setCurrentLocale, setDate, setDefaultDate, setDefaultDate, setShowISOWeekNumbersMethods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
shortcutHandler
protected com.vaadin.client.ui.ShortcutActionHandler shortcutHandler -
EMPTY_FIELD_CLASS
- See Also:
-
RANGE_DATE_FORMAT
- See Also:
-
EMPTY_MASK
- See Also:
-
tabIndex
protected int tabIndex -
autofill
protected boolean autofill -
rangeStart
-
rangeEnd
-
-
Constructor Details
-
JmixDateFieldWidget
public JmixDateFieldWidget()
-
-
Method Details
-
setTextFieldEnabled
public void setTextFieldEnabled(boolean textFieldEnabled) - Overrides:
setTextFieldEnabledin classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
updateValue
- Overrides:
updateValuein classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
onAttach
protected void onAttach()- Overrides:
onAttachin classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
buildDate
protected void buildDate(boolean forceValid) - Overrides:
buildDatein classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
buildDate
public void buildDate()- Overrides:
buildDatein classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
setReadonly
public void setReadonly(boolean readonly) - Overrides:
setReadonlyin classcom.vaadin.client.ui.VDateField<com.vaadin.shared.ui.datefield.DateResolution>
-
setAutofill
public void setAutofill(boolean autofill) -
isAutofill
public boolean isAutofill() -
setDateRangeStart
-
getDateRangeStart
-
setDateRangeEnd
-
getDateRangeEnd
-
updateTabIndex
protected void updateTabIndex(int tabIndex) -
getImpl
- Overrides:
getImplin classcom.vaadin.client.ui.VAbstractTextualDate<com.vaadin.shared.ui.datefield.DateResolution>
-
createImpl
- Overrides:
createImplin classcom.vaadin.client.ui.VAbstractTextualDate<com.vaadin.shared.ui.datefield.DateResolution>
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
-
setShortcutActionHandler
public void setShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler) -
getShortcutActionHandler
public com.vaadin.client.ui.ShortcutActionHandler getShortcutActionHandler()- Specified by:
getShortcutActionHandlerin interfacecom.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
-
updateTextState
public void updateTextState() -
parseRangeString
-
fillValue
-
adjustStringValue
-
adjustDateByRange
-