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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<BaseDateInterval.Type,
com.vaadin.flow.component.Component> protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected PredefinedDateIntervalRegistry
protected LastIntervalField
protected Messages
protected MetaPropertyPath
protected NextIntervalField
protected JmixSelect<PredefinedDateInterval>
protected JmixRadioButtonGroup<BaseDateInterval.Type>
protected UiComponents
protected BaseDateInterval
protected ViewValidation
-
Constructor Summary
Constructors -
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 boolean
protected boolean
protected void
onInit
(View.InitEvent event) protected void
onReady
(View.ReadyEvent event) protected void
onSaveAndCloseBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected void
onTypeRadioButtonGroupValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixCheckboxGroup<BaseDateInterval.Type>, BaseDateInterval.Type> event) void
setMetaPropertyPath
(MetaPropertyPath metaPropertyPath) Sets meta property path of entity's property for Date Interval.protected void
void
setValue
(BaseDateInterval value) Sets value that will be applied whenView.BeforeShowEvent
is fired.protected void
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigation
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
messages
-
uiComponents
-
viewValidation
-
intervalFactory
-
typeRadioButtonGroup
-
contentBox
-
predefinedIntervalsSelect
-
lastIntervalField
-
nextIntervalField
-
componentVisibilityMap
-
value
-
mpp
-
-
Constructor Details
-
DateIntervalDialog
public DateIntervalDialog()
-
-
Method Details
-
onInit
-
initComponents
protected void initComponents() -
onReady
-
initTypeRadioButtonGroup
protected void initTypeRadioButtonGroup() -
initNextLastIntervalField
protected void initNextLastIntervalField() -
initPredefinedIntervalsSelect
protected void initPredefinedIntervalsSelect() -
initComponentVisibilityMap
protected void initComponentVisibilityMap() -
getValue
- Returns:
- date value or
null
if value is not set
-
setValue
Sets value that will be applied whenView.BeforeShowEvent
is fired.- Parameters:
value
- date interval
-
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
-
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
-
getLocalizedEnumMap
-
getLocalizedEnumMap
-