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
,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 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 void
onCloseBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected void
onInit
(View.InitEvent 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
void
setupOneChannelOnly
(NotificationChannel channel) 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, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
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
-
-
Constructor Details
-
CreateNotificationDialog
public CreateNotificationDialog()
-
-
Method Details
-
onInit
-
setupOneChannelOnly
-
initTypeField
-
initRecipientsField
protected void initRecipientsField(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField) -
initChannelsField
-
channelsFieldItemLabelGenerator
-
onSaveAndCloseBtnClick
@Subscribe("saveAndCloseBtn") public void onSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
onCloseBtnClick
@Subscribe("closeBtn") protected void onCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
saveNotification
protected void saveNotification() -
resolveSubject
-
resolveChannelNames
-
resolveTypeName
-
resolveRecipientUsernames
-
validateUiComponents
-
onRecipientsFieldFetchCallback
-