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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.common.collect.Multimap<BaseDateInterval.Type,
Field> protected Dialogs
protected CheckBox
protected PredefinedDateIntervalRegistry
protected Messages
protected MetaPropertyPath
protected Notifications
protected ComboBox<PredefinedDateInterval>
protected ComboBox<RelativeDateInterval.Operation>
protected RelativeDateTimeMomentProvider
protected ComboBox<DateInterval.TimeUnit>
protected RadioButtonGroup<BaseDateInterval.Type>
protected BaseDateInterval
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getLocalizedEnumMap
(Class<T> enumClass) getLocalizedEnumMap
(List<T> values) getValue()
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
onInit
(Screen.InitEvent event) protected void
onOkBtnClick
(Button.ClickEvent event) protected void
void
setMetaPropertyPath
(MetaPropertyPath metaPropertyPath) Sets meta property path of entity's property for Date Interval.void
setValue
(BaseDateInterval value) Sets value that will be applied whenScreen.BeforeShowEvent
is fired.protected void
protected ValidationErrors
validateFields
(Field... components) withMetaPropertyPath
(MetaPropertyPath metaPropertyPath) Sets meta property path of entity's property for Date Interval.withValue
(BaseDateInterval value) Sets value that will be applied whenScreen.BeforeShowEvent
is fired.Methods inherited from class io.jmix.ui.screen.Screen
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
-
Field Details
-
timeClasses
-
messages
-
dialogs
-
notifications
-
intervalFactory
-
relativeMomentProvider
-
typeRadioButtonGroup
-
numberField
-
timeUnitComboBox
-
includingCurrentCheckBox
-
predefinedIntervalsComboBox
-
relativeDateTimeOperationComboBox
-
relativeDateTimeComboBox
-
componentVisibilityMap
-
value
-
mpp
-
-
Constructor Details
-
DateIntervalDialog
public DateIntervalDialog()
-
-
Method Details
-
onInit
-
onBeforeShow
-
getValue
- Returns:
- date value or
null
if value is not set
-
setValue
Sets value that will be applied whenScreen.BeforeShowEvent
is fired.- Parameters:
value
- date interval
-
withValue
Sets value that will be applied whenScreen.BeforeShowEvent
is fired.- Parameters:
value
- date interval- Returns:
- screen instance
-
getMetaPropertyPath
- Returns:
- meta property path of entity's property for Date Interval
-
setMetaPropertyPath
Sets meta property path of entity's property for Date Interval.- Parameters:
metaPropertyPath
- meta property path
-
withMetaPropertyPath
Sets meta property path of entity's property for Date Interval.- Parameters:
metaPropertyPath
- meta property path- Returns:
- screen instance
-
filterOptionsByPropertyType
-
initTypeRadioButtonGroup
protected void initTypeRadioButtonGroup() -
initTimeUnitComboBox
protected void initTimeUnitComboBox() -
initPredefinedIntervalsComboBox
protected void initPredefinedIntervalsComboBox() -
initRelativeDateTimeOperationComboBox
protected void initRelativeDateTimeOperationComboBox() -
initRelativeDateTimeComboBox
protected void initRelativeDateTimeComboBox() -
getLocalizedEnumMap
-
getLocalizedEnumMap
-
textFieldContextHelpIconClickHandler
@Install(to="includingCurrentCheckBox", subject="contextHelpIconClickHandler") protected void textFieldContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent event) -
onTypeRadioButtonGroupValueChange
@Subscribe("typeRadioButtonGroup") protected void onTypeRadioButtonGroupValueChange(HasValue.ValueChangeEvent<BaseDateInterval.Type> event) -
onOkBtnClick
-
onCancelBtnClick
-
validateFields
-