Package io.jmix.flowui
Class Notifications
java.lang.Object
io.jmix.flowui.Notifications
Configures and displays popup notifications.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that configures and displays notifications.static enumNotification type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected UiComponentProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.vaadin.flow.component.Component component) Returns a builder for configuring and displaying the notification.Returns a builder for configuring and displaying the notification.Returns a builder for configuring and displaying the notification.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidshow(com.vaadin.flow.component.Component component) Shows a component in the notification popup.voidShows a simple text notification.voidShows a notification with a title and message.
-
Field Details
-
uiComponentProperties
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
Notifications
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
show
Shows a simple text notification.- Parameters:
text- notification text
-
show
Shows a notification with a title and message.- Parameters:
title- notification titlemessage- notification message
-
show
public void show(com.vaadin.flow.component.Component component) Shows a component in the notification popup.- Parameters:
component- component to show in notification
-
create
Returns a builder for configuring and displaying the notification.- Parameters:
text- notification text
-
create
Returns a builder for configuring and displaying the notification.- Parameters:
title- notification titlemessage- notification message
-
create
Returns a builder for configuring and displaying the notification.- Parameters:
component- component to show in notification
-