Package io.jmix.notificationsui.screen
Class InAppNotificationScreenHelper
java.lang.Object
io.jmix.notificationsui.screen.InAppNotificationScreenHelper
@Component("ntf_InAppNotificationScreenHelper")
public class InAppNotificationScreenHelper
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected Icons
protected Messages
protected NotificationChannelProvider
protected NotificationTypesRepository
protected UserRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
enablePlainTextField
(TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, ExpandingLayout expandingLayout) protected void
enableRichTextField
(TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, ExpandingLayout expandingLayout) void
initContentTypeField
(Dialogs dialogs, RadioButtonGroup<ContentType> contentTypeField, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, ExpandingLayout expandingLayout, ContentType initialValue) void
initNotificationTypeField
(ComboBox<NotificationType> typeField) <T extends SuggestionFieldComponent<?,
org.springframework.security.core.userdetails.UserDetails>>
voidinitUsersSuggestionField
(T usersField) protected void
onContentTypeValueChange
(HasValue.ValueChangeEvent<ContentType> event, Dialogs dialogs, RadioButtonGroup<ContentType> contentTypeField, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, ExpandingLayout expandingLayout) resolveBody
(ContentType contentType, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField) resolveContentType
(RadioButtonGroup<ContentType> contentTypeField, ContentType defaultValue) resolveNotificationTypeName
(ComboBox<NotificationType> typeField) resolveRecipientUsername
(SuggestionField<org.springframework.security.core.userdetails.UserDetails> recipientField) resolveRecipientUsernames
(TagField<org.springframework.security.core.userdetails.UserDetails> recipientsField)
-
Field Details
-
notificationChannelProvider
-
notificationTypesRepository
-
messages
-
icons
-
userRepository
-
-
Constructor Details
-
InAppNotificationScreenHelper
public InAppNotificationScreenHelper()
-
-
Method Details
-
initNotificationTypeField
-
initUsersSuggestionField
public <T extends SuggestionFieldComponent<?,org.springframework.security.core.userdetails.UserDetails>> void initUsersSuggestionField(T usersField) -
initContentTypeField
public void initContentTypeField(Dialogs dialogs, RadioButtonGroup<ContentType> contentTypeField, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, @Nullable ExpandingLayout expandingLayout, @Nullable ContentType initialValue) -
resolveContentType
public ContentType resolveContentType(RadioButtonGroup<ContentType> contentTypeField, ContentType defaultValue) -
resolveBody
@Nullable public String resolveBody(ContentType contentType, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField) -
resolveNotificationTypeName
-
resolveRecipientUsernames
-
resolveRecipientUsername
@Nullable public String resolveRecipientUsername(SuggestionField<org.springframework.security.core.userdetails.UserDetails> recipientField) -
onContentTypeValueChange
protected void onContentTypeValueChange(HasValue.ValueChangeEvent<ContentType> event, Dialogs dialogs, RadioButtonGroup<ContentType> contentTypeField, TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, @Nullable ExpandingLayout expandingLayout) -
enablePlainTextField
protected void enablePlainTextField(TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, @Nullable ExpandingLayout expandingLayout) -
enableRichTextField
protected void enableRichTextField(TextArea<String> plainTextBodyField, RichTextArea richTextBodyField, @Nullable ExpandingLayout expandingLayout)
-