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.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixCheckboxGroup<NotificationChannel>protected JmixFormLayoutprotected Fragmentsprotected Messagesprotected MessageTemplatesFragmentprotected MessageTemplatesProviderprotected booleanprotected 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 ContentTypeprotected voidinitChannelsField(JmixCheckboxGroup<NotificationChannel> channelsField) protected voidprotected voidinitRecipientsField(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField) protected voidinitTypeField(JmixSelect<NotificationType> typeField) protected booleanprotected voidprotected voidonChangeEvent(com.vaadin.flow.component.ComponentEvent<?> changeEvent) protected voidonCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidonInit(View.InitEvent event) protected voidonReady(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) voidonSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidonUseMessageTemplateCheckboxChange(boolean useMessageTemplates) resolveBody(ContentType contentType) protected Collection<String>protected Stringprotected voidprotected voidsetModifiedAfterOpen(boolean modifiedAfterOpen) protected voidvoidsetupOneChannelOnly(NotificationChannel channel) protected voidprotected ValidationErrorsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, 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
-
fragments
-
messageTemplatesProvider
-
subjectField
-
form
-
plainTextBodyField
-
typeField
-
recipientsField
@ViewComponent protected JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField -
channelsField
-
messageTemplatesFragment
-
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
-
initMessageTemplatesLayout
protected void initMessageTemplatesLayout() -
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() -
onUseMessageTemplateCheckboxChange
protected void onUseMessageTemplateCheckboxChange(boolean useMessageTemplates) -
contentTypeProvider
-
saveNotification
protected void saveNotification() -
resolveSubject
-
resolveChannelNames
-
resolveBody
-
resolveTypeName
-
resolveRecipientUsernames
-
validateUiComponents
-
onRecipientsFieldFetchCallback
-
isModifiedAfterOpen
protected boolean isModifiedAfterOpen() -
setModifiedAfterOpen
protected void setModifiedAfterOpen(boolean modifiedAfterOpen)
-