@UiController(value="ui_DateIntervalDialog") @UiDescriptor(value="date-interval-dialog.xml") public class DateIntervalDialog extends Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.Multimap<BaseDateInterval.Type,Field> |
componentVisibilityMap |
protected CheckBox |
includingCurrentCheckBox |
protected PredefinedDateIntervalRegistry |
intervalFactory |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.metamodel.model.MetaPropertyPath |
mpp |
protected Notifications |
notifications |
protected TextField<java.lang.Integer> |
numberField |
protected ComboBox<PredefinedDateInterval> |
predefinedIntervalsComboBox |
protected ComboBox<java.lang.Enum> |
relativeDateTimeComboBox |
protected ComboBox<RelativeDateInterval.Operation> |
relativeDateTimeOperationComboBox |
protected RelativeDateTimeMomentProvider |
relativeMomentProvider |
protected static java.util.List<java.lang.Class<?>> |
timeClasses |
protected ComboBox<DateInterval.TimeUnit> |
timeUnitComboBox |
protected RadioButtonGroup<BaseDateInterval.Type> |
typeRadioButtonGroup |
protected BaseDateInterval |
value |
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Constructor and Description |
---|
DateIntervalDialog() |
Modifier and Type | Method and Description |
---|---|
protected void |
filterOptionsByPropertyType(io.jmix.core.metamodel.model.MetaPropertyPath mpp) |
protected <T extends java.lang.Enum> |
getLocalizedEnumMap(java.lang.Class<T> enumClass) |
protected <T extends java.lang.Enum> |
getLocalizedEnumMap(java.util.List<T> values) |
io.jmix.core.metamodel.model.MetaPropertyPath |
getMetaPropertyPath() |
BaseDateInterval |
getValue() |
protected void |
initPredefinedIntervalsComboBox() |
protected void |
initRelativeDateTimeComboBox() |
protected void |
initRelativeDateTimeOperationComboBox() |
protected void |
initTimeUnitComboBox() |
protected void |
initTypeRadioButtonGroup() |
protected void |
onBeforeShow(Screen.BeforeShowEvent event) |
protected void |
onCancelBtnClick(Button.ClickEvent event) |
protected void |
onInit(Screen.InitEvent event) |
protected void |
onOkBtnClick(Button.ClickEvent event) |
protected void |
onTypeRadioButtonGroupValueChange(HasValue.ValueChangeEvent<BaseDateInterval.Type> event) |
void |
setMetaPropertyPath(io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
Sets meta property path of entity's property for Date Interval.
|
void |
setValue(BaseDateInterval value)
Sets value that will be applied when
BeforeShowEvent is fired. |
protected ValidationErrors |
validateFields(Field... components) |
DateIntervalDialog |
withMetaPropertyPath(io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
Sets meta property path of entity's property for Date Interval.
|
DateIntervalDialog |
withValue(BaseDateInterval value)
Sets value that will be applied when
BeforeShowEvent is fired. |
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
protected static final java.util.List<java.lang.Class<?>> timeClasses
@Autowired protected io.jmix.core.Messages messages
@Autowired protected Notifications notifications
@Autowired protected PredefinedDateIntervalRegistry intervalFactory
@Autowired(required=false) protected RelativeDateTimeMomentProvider relativeMomentProvider
@Autowired protected RadioButtonGroup<BaseDateInterval.Type> typeRadioButtonGroup
@Autowired protected TextField<java.lang.Integer> numberField
@Autowired protected ComboBox<DateInterval.TimeUnit> timeUnitComboBox
@Autowired protected CheckBox includingCurrentCheckBox
@Autowired protected ComboBox<PredefinedDateInterval> predefinedIntervalsComboBox
@Autowired protected ComboBox<RelativeDateInterval.Operation> relativeDateTimeOperationComboBox
@Autowired protected ComboBox<java.lang.Enum> relativeDateTimeComboBox
protected com.google.common.collect.Multimap<BaseDateInterval.Type,Field> componentVisibilityMap
protected BaseDateInterval value
protected io.jmix.core.metamodel.model.MetaPropertyPath mpp
@Subscribe protected void onInit(Screen.InitEvent event)
@Subscribe protected void onBeforeShow(Screen.BeforeShowEvent event)
@Nullable public BaseDateInterval getValue()
null
if value is not setpublic void setValue(@Nullable BaseDateInterval value)
BeforeShowEvent
is fired.value
- date intervalpublic DateIntervalDialog withValue(@Nullable BaseDateInterval value)
BeforeShowEvent
is fired.value
- date interval@Nullable public io.jmix.core.metamodel.model.MetaPropertyPath getMetaPropertyPath()
public void setMetaPropertyPath(@Nullable io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
metaPropertyPath
- meta property pathpublic DateIntervalDialog withMetaPropertyPath(@Nullable io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
metaPropertyPath
- meta property pathprotected void filterOptionsByPropertyType(@Nullable io.jmix.core.metamodel.model.MetaPropertyPath mpp)
protected void initTypeRadioButtonGroup()
protected void initTimeUnitComboBox()
protected void initPredefinedIntervalsComboBox()
protected void initRelativeDateTimeOperationComboBox()
protected void initRelativeDateTimeComboBox()
protected <T extends java.lang.Enum> java.util.Map<java.lang.String,T> getLocalizedEnumMap(java.lang.Class<T> enumClass)
protected <T extends java.lang.Enum> java.util.Map<java.lang.String,T> getLocalizedEnumMap(java.util.List<T> values)
@Subscribe(value="typeRadioButtonGroup") protected void onTypeRadioButtonGroupValueChange(HasValue.ValueChangeEvent<BaseDateInterval.Type> event)
@Subscribe(value="okBtn") protected void onOkBtnClick(Button.ClickEvent event)
@Subscribe(value="cancelBtn") protected void onCancelBtnClick(Button.ClickEvent event)
protected ValidationErrors validateFields(Field... components)