Class DateIntervalDialog

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.app.propertyfilter.dateinterval.DateIntervalDialog
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, FragmentOwner, Serializable
Direct Known Subclasses:
DateIntervalDialog

@ViewController("flowui_DateIntervalDialog") @ViewDescriptor("date-interval-dialog.xml") @DialogMode(width="50em") public class DateIntervalDialog extends StandardView
See Also:
  • Field Details

  • Constructor Details

    • DateIntervalDialog

      public DateIntervalDialog()
  • Method Details

    • onInit

      @Subscribe protected void onInit(View.InitEvent event)
    • initComponents

      protected void initComponents()
    • onReady

      @Subscribe protected void onReady(View.ReadyEvent event)
    • initTypeRadioButtonGroup

      protected void initTypeRadioButtonGroup()
    • initNextLastIntervalField

      protected void initNextLastIntervalField()
    • initPredefinedIntervalsSelect

      protected void initPredefinedIntervalsSelect()
    • initComponentVisibilityMap

      protected void initComponentVisibilityMap()
    • getValue

      @Nullable public BaseDateInterval getValue()
      Returns:
      date value or null if value is not set
    • setValue

      public void setValue(@Nullable BaseDateInterval value)
      Sets value that will be applied when View.BeforeShowEvent is fired.
      Parameters:
      value - date interval
    • getMetaPropertyPath

      @Nullable public MetaPropertyPath getMetaPropertyPath()
      Returns:
      meta property path of entity's property for Date Interval
    • setMetaPropertyPath

      public void setMetaPropertyPath(@Nullable MetaPropertyPath metaPropertyPath)
      Sets meta property path of entity's property for Date Interval.
      Parameters:
      metaPropertyPath - meta property path
    • filterOptionsByPropertyType

      protected void filterOptionsByPropertyType()
    • isOptionsFilterable

      protected boolean isOptionsFilterable()
    • setupInitialValues

      protected void setupInitialValues()
    • isValueEmpty

      protected boolean isValueEmpty()
    • onTypeRadioButtonGroupValueChange

      @Subscribe("typeRadioButtonGroup") protected void onTypeRadioButtonGroupValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixCheckboxGroup<BaseDateInterval.Type>,BaseDateInterval.Type> event)
    • onSaveAndCloseBtnClick

      @Subscribe("saveAndCloseBtn") protected void onSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • updateValueByType

      protected void updateValueByType(BaseDateInterval.Type type)
    • getLocalizedEnumMap

      protected <T extends Enum> Map<T,String> getLocalizedEnumMap(Class<T> enumClass)
    • getLocalizedEnumMap

      protected <T extends Enum> Map<T,String> getLocalizedEnumMap(List<T> values)