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
FieldsModifier and TypeFieldDescriptionprotected JmixCheckboxGroup<NotificationChannel>protected Messagesprotected NotificationChannelProviderprotected NotificationManagerprotected NotificationDetailViewSupportprotected JmixTextAreaprotected JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails>protected TypedTextField<String>protected JmixSelect<NotificationType>protected UserRepositoryprotected ViewValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidinitChannelsField(JmixCheckboxGroup<NotificationChannel> channelsField) protected voidinitRecipientsField(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField) protected voidinitTypeField(JmixSelect<NotificationType> typeField) protected voidonCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidonInit(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) voidonSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected Collection<String>protected Stringprotected voidvoidsetupOneChannelOnly(NotificationChannel channel) protected ValidationErrorsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, setViewFacetsMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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
-