Class CreateNotificationDialog
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.notificationsflowui.view.createnotification.CreateNotificationDialog
- 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
@ViewController("ntf_CreateNotificationDialog")
@ViewDescriptor("create-notification-dialog.xml")
@DialogMode(width="30em",
resizable=true)
public class CreateNotificationDialog
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
Modifier and TypeFieldDescriptionprotected JmixCheckboxGroup<NotificationChannel>
protected Messages
protected boolean
protected NotificationChannelProvider
protected NotificationManager
protected NotificationDetailViewSupport
protected JmixTextArea
protected JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails>
protected TypedTextField<String>
protected JmixSelect<NotificationType>
protected UserRepository
protected ViewValidation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
initChannelsField
(JmixCheckboxGroup<NotificationChannel> channelsField) protected void
initRecipientsField
(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField) protected void
initTypeField
(JmixSelect<NotificationType> typeField) protected boolean
protected void
protected void
onChangeEvent
(com.vaadin.flow.component.ComponentEvent<?> changeEvent) protected void
onCloseBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected void
onInit
(View.InitEvent event) protected void
onReady
(View.ReadyEvent event) protected Stream<org.springframework.security.core.userdetails.UserDetails>
onRecipientsFieldFetchCallback
(com.vaadin.flow.data.provider.Query<org.springframework.security.core.userdetails.UserDetails, String> query) void
onSaveAndCloseBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected Collection<String>
protected String
protected void
protected void
setModifiedAfterOpen
(boolean modifiedAfterOpen) protected void
void
setupOneChannelOnly
(NotificationChannel channel) protected void
protected ValidationErrors
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, setAfterNavigationHandler, 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
-
notificationManager
-
notificationChannelProvider
-
messages
-
viewValidation
-
notificationViewSupport
-
userRepository
-
subjectField
-
plainTextBodyField
-
typeField
-
recipientsField
@ViewComponent protected JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField -
channelsField
-
modifiedAfterOpen
protected boolean modifiedAfterOpen
-
-
Constructor Details
-
CreateNotificationDialog
public CreateNotificationDialog()
-
-
Method Details
-
onInit
-
onReady
-
setupOneChannelOnly
-
initTypeField
-
initRecipientsField
protected void initRecipientsField(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField) -
initChannelsField
-
setupModifiedTracking
protected void setupModifiedTracking() -
onChangeEvent
protected void onChangeEvent(com.vaadin.flow.component.ComponentEvent<?> changeEvent) -
channelsFieldItemLabelGenerator
-
onSaveAndCloseBtnClick
@Subscribe("saveAndCloseBtn") public void onSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
onBeforeCloseEvent
-
onCloseBtnClick
@Subscribe("closeBtn") protected void onCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
showUnsavedDialog
protected void showUnsavedDialog() -
saveNotification
protected void saveNotification() -
resolveSubject
-
resolveChannelNames
-
resolveTypeName
-
resolveRecipientUsernames
-
validateUiComponents
-
onRecipientsFieldFetchCallback
-
isModifiedAfterOpen
protected boolean isModifiedAfterOpen() -
setModifiedAfterOpen
protected void setModifiedAfterOpen(boolean modifiedAfterOpen)
-