Class DateIntervalDialog

java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.app.propertyfilter.dateinterval.DateIntervalDialog
All Implemented Interfaces:
FrameOwner

@UiController("ui_DateIntervalDialog") @UiDescriptor("date-interval-dialog.xml") public class DateIntervalDialog extends Screen
Date interval editor.
  • Field Details

  • Constructor Details

    • DateIntervalDialog

      public DateIntervalDialog()
  • Method Details

    • onInit

      @Subscribe protected void onInit(Screen.InitEvent event)
    • onBeforeShow

      @Subscribe protected void onBeforeShow(Screen.BeforeShowEvent event)
    • 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 Screen.BeforeShowEvent is fired.
      Parameters:
      value - date interval
    • withValue

      public DateIntervalDialog withValue(@Nullable BaseDateInterval value)
      Sets value that will be applied when Screen.BeforeShowEvent is fired.
      Parameters:
      value - date interval
      Returns:
      screen instance
    • 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
    • withMetaPropertyPath

      public DateIntervalDialog withMetaPropertyPath(@Nullable MetaPropertyPath metaPropertyPath)
      Sets meta property path of entity's property for Date Interval.
      Parameters:
      metaPropertyPath - meta property path
      Returns:
      screen instance
    • filterOptionsByPropertyType

      protected void filterOptionsByPropertyType(@Nullable MetaPropertyPath mpp)
    • initTypeRadioButtonGroup

      protected void initTypeRadioButtonGroup()
    • initTimeUnitComboBox

      protected void initTimeUnitComboBox()
    • initPredefinedIntervalsComboBox

      protected void initPredefinedIntervalsComboBox()
    • initRelativeDateTimeOperationComboBox

      protected void initRelativeDateTimeOperationComboBox()
    • initRelativeDateTimeComboBox

      protected void initRelativeDateTimeComboBox()
    • getLocalizedEnumMap

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

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

      @Install(to="includingCurrentCheckBox", subject="contextHelpIconClickHandler") protected void textFieldContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent event)
    • onTypeRadioButtonGroupValueChange

      @Subscribe("typeRadioButtonGroup") protected void onTypeRadioButtonGroupValueChange(HasValue.ValueChangeEvent<BaseDateInterval.Type> event)
    • onOkBtnClick

      @Subscribe("okBtn") protected void onOkBtnClick(Button.ClickEvent event)
    • onCancelBtnClick

      @Subscribe("cancelBtn") protected void onCancelBtnClick(Button.ClickEvent event)
    • validateFields

      protected ValidationErrors validateFields(Field... components)