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

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Date
    adjustDateByRange(Date date, Date rangeStart, Date rangeEnd)
     
    protected String
     
    void
     
    protected void
    buildDate(boolean forceValid)
     
     
    protected String
     
     
     
     
    com.vaadin.client.ui.ShortcutActionHandler
     
    boolean
     
    protected void
     
    void
    onBrowserEvent(com.google.gwt.user.client.Event event)
     
    protected Date
     
    void
    setAutofill(boolean autofill)
     
    void
     
    void
     
    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

      protected static final String EMPTY_FIELD_CLASS
      See Also:
    • RANGE_DATE_FORMAT

      protected static final String RANGE_DATE_FORMAT
      See Also:
    • EMPTY_MASK

      protected static final String EMPTY_MASK
      See Also:
    • tabIndex

      protected int tabIndex
    • autofill

      protected boolean autofill
    • rangeStart

      protected Date rangeStart
    • rangeEnd

      protected Date rangeEnd
  • Constructor Details

    • JmixDateFieldWidget

      public JmixDateFieldWidget()
  • Method Details

    • setTextFieldEnabled

      public void setTextFieldEnabled(boolean textFieldEnabled)
      Overrides:
      setTextFieldEnabled in class com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
    • updateValue

      public void updateValue(Date newDate)
      Overrides:
      updateValue in class com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
    • onAttach

      protected void onAttach()
      Overrides:
      onAttach in class com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
    • buildDate

      protected void buildDate(boolean forceValid)
      Overrides:
      buildDate in class com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
    • buildDate

      public void buildDate()
      Overrides:
      buildDate in class com.vaadin.client.ui.VAbstractPopupCalendar<com.vaadin.client.ui.VDateCalendarPanel,com.vaadin.shared.ui.datefield.DateResolution>
    • setReadonly

      public void setReadonly(boolean readonly)
      Overrides:
      setReadonly in class com.vaadin.client.ui.VDateField<com.vaadin.shared.ui.datefield.DateResolution>
    • setAutofill

      public void setAutofill(boolean autofill)
    • isAutofill

      public boolean isAutofill()
    • setDateRangeStart

      public void setDateRangeStart(String rangeStart)
    • getDateRangeStart

      public Date getDateRangeStart()
    • setDateRangeEnd

      public void setDateRangeEnd(String rangeEnd)
    • getDateRangeEnd

      public Date getDateRangeEnd()
    • updateTabIndex

      protected void updateTabIndex(int tabIndex)
    • getImpl

      public JmixMaskedFieldWidget getImpl()
      Overrides:
      getImpl in class com.vaadin.client.ui.VAbstractTextualDate<com.vaadin.shared.ui.datefield.DateResolution>
    • createImpl

      protected JmixMaskedFieldWidget createImpl()
      Overrides:
      createImpl in class com.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 interface com.google.gwt.user.client.EventListener
      Overrides:
      onBrowserEvent in class com.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 interface com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
    • updateTextState

      public void updateTextState()
    • parseRangeString

      protected Date parseRangeString(String dateStr)
    • fillValue

      protected String fillValue(String value)
    • adjustStringValue

      protected String adjustStringValue(String value)
    • adjustDateByRange

      protected Date adjustDateByRange(Date date, Date rangeStart, Date rangeEnd)