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:
  • Field Details

  • Constructor Details

    • CreateNotificationDialog

      public CreateNotificationDialog()
  • Method Details

    • onInit

      @Subscribe protected void onInit(View.InitEvent event)
    • onReady

      @Subscribe protected void onReady(View.ReadyEvent event)
    • setupOneChannelOnly

      public void setupOneChannelOnly(NotificationChannel channel)
    • initTypeField

      protected void initTypeField(JmixSelect<NotificationType> typeField)
    • initRecipientsField

      protected void initRecipientsField(JmixMultiSelectComboBox<org.springframework.security.core.userdetails.UserDetails> recipientsField)
    • initChannelsField

      protected void initChannelsField(JmixCheckboxGroup<NotificationChannel> channelsField)
    • setupModifiedTracking

      protected void setupModifiedTracking()
    • onChangeEvent

      protected void onChangeEvent(com.vaadin.flow.component.ComponentEvent<?> changeEvent)
    • channelsFieldItemLabelGenerator

      @Install(to="channelsField", subject="itemLabelGenerator") protected String channelsFieldItemLabelGenerator(Object item)
    • onSaveAndCloseBtnClick

      @Subscribe("saveAndCloseBtn") public void onSaveAndCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • onBeforeCloseEvent

      @Subscribe protected void onBeforeCloseEvent(View.BeforeCloseEvent event)
    • onCloseBtnClick

      @Subscribe("closeBtn") protected void onCloseBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • showUnsavedDialog

      protected void showUnsavedDialog()
    • saveNotification

      protected void saveNotification()
    • resolveSubject

      protected String resolveSubject()
    • resolveChannelNames

      protected Collection<String> resolveChannelNames()
    • resolveTypeName

      @Nullable public String resolveTypeName()
    • resolveRecipientUsernames

      public List<String> resolveRecipientUsernames()
    • validateUiComponents

      protected ValidationErrors validateUiComponents()
    • onRecipientsFieldFetchCallback

      protected Stream<org.springframework.security.core.userdetails.UserDetails> onRecipientsFieldFetchCallback(com.vaadin.flow.data.provider.Query<org.springframework.security.core.userdetails.UserDetails,String> query)
    • isModifiedAfterOpen

      protected boolean isModifiedAfterOpen()
    • setModifiedAfterOpen

      protected void setModifiedAfterOpen(boolean modifiedAfterOpen)