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.DebugIdImplEnabled
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected static final String
protected static final String
protected static final String
protected Date
protected Date
protected com.vaadin.client.ui.ShortcutActionHandler
protected int
Fields inherited from class com.vaadin.client.ui.VAbstractPopupCalendar
calendar, calendarToggle, parsable, popup
Fields inherited from class com.vaadin.client.ui.VAbstractTextualDate
lenient, text
Fields inherited from class com.vaadin.client.ui.VDateField
bufferedDateString, bufferedResolutions, CLASSNAME, client, connector, currentLocale, dts, enabled, readonly, rpc, showISOWeekNumbers
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Date
adjustDateByRange
(Date date, Date rangeStart, Date rangeEnd) protected String
adjustStringValue
(String value) void
protected void
buildDate
(boolean forceValid) protected JmixMaskedFieldWidget
protected String
getImpl()
com.vaadin.client.ui.ShortcutActionHandler
boolean
protected void
onAttach()
void
onBrowserEvent
(com.google.gwt.user.client.Event event) protected Date
parseRangeString
(String dateStr) void
setAutofill
(boolean autofill) void
setDateRangeEnd
(String rangeEnd) void
setDateRangeStart
(String rangeStart) void
setReadonly
(boolean readonly) void
setShortcutActionHandler
(com.vaadin.client.ui.ShortcutActionHandler handler) void
setTextFieldEnabled
(boolean textFieldEnabled) protected void
updateTabIndex
(int tabIndex) void
void
updateValue
(Date newDate) Methods inherited from class com.vaadin.client.ui.VPopupCalendar
cleanFormat, doGetResolutions, getDate, isYear, makeDate, resolutionAsString, setCurrentResolution, supportsTime, updateBufferedResolutions
Methods 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, updateTextFieldEnabled
Methods 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, updateBufferedValues
Methods 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, setShowISOWeekNumbers
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
Methods 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, unsinkEvents
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, remove
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
Methods 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:
setTextFieldEnabled
in classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,
com.vaadin.shared.ui.datefield.DateResolution>
-
updateValue
- Overrides:
updateValue
in classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,
com.vaadin.shared.ui.datefield.DateResolution>
-
onAttach
protected void onAttach()- Overrides:
onAttach
in classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,
com.vaadin.shared.ui.datefield.DateResolution>
-
buildDate
protected void buildDate(boolean forceValid) - Overrides:
buildDate
in classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,
com.vaadin.shared.ui.datefield.DateResolution>
-
buildDate
public void buildDate()- Overrides:
buildDate
in classcom.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,
com.vaadin.shared.ui.datefield.DateResolution>
-
setReadonly
public void setReadonly(boolean readonly) - Overrides:
setReadonly
in 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:
getImpl
in classcom.vaadin.client.ui.VAbstractTextualDate<com.vaadin.shared.ui.datefield.DateResolution>
-
createImpl
- Overrides:
createImpl
in classcom.vaadin.client.ui.VAbstractTextualDate<com.vaadin.shared.ui.datefield.DateResolution>
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in 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:
getShortcutActionHandler
in interfacecom.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
-
updateTextState
public void updateTextState() -
parseRangeString
-
fillValue
-
adjustStringValue
-
adjustDateByRange
-