Class NotificationInfo
java.lang.Object
io.jmix.flowui.testassist.notification.NotificationInfo
POJO class for storing notification information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.Componentprotected Stringprotected final com.vaadin.flow.component.notification.Notificationprotected Stringprotected Stringprotected Notifications.Type -
Constructor Summary
ConstructorsConstructorDescriptionNotificationInfo(com.vaadin.flow.component.notification.Notification notification) Creates aNotificationInfoof the passedNotification. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Componentcom.vaadin.flow.component.notification.NotificationgetText()getTitle()getType()protected NotificationInfowithComponent(com.vaadin.flow.component.Component component) Sets thecomponentof theNotification.protected NotificationInfowithMessage(String message) Sets themessageof theNotification.protected NotificationInfoSets thetextof theNotification.protected NotificationInfoSets thetitleof theNotification.protected NotificationInfowithType(Notifications.Type type) Sets thetypeof theNotification.
-
Field Details
-
notification
protected final com.vaadin.flow.component.notification.Notification notification -
text
-
title
-
message
-
component
protected com.vaadin.flow.component.Component component -
type
-
-
Constructor Details
-
NotificationInfo
public NotificationInfo(com.vaadin.flow.component.notification.Notification notification) Creates aNotificationInfoof the passedNotification.- Parameters:
notification-Notificationto createNotificationInfo
-
-
Method Details
-
withText
Sets thetextof theNotification.- Parameters:
text- text to set- Returns:
- this
-
withTitle
Sets thetitleof theNotification.- Parameters:
title- title to set- Returns:
- this
-
withMessage
Sets themessageof theNotification.- Parameters:
message- message to set- Returns:
- this
-
withComponent
Sets thecomponentof theNotification.- Parameters:
component- component to set- Returns:
- this
-
withType
Sets thetypeof theNotification.- Parameters:
type- type to set- Returns:
- this
-
getNotification
public com.vaadin.flow.component.notification.Notification getNotification()- Returns:
Notificationinstance
-
getText
- Returns:
- the
Notificationtext
-
getTitle
- Returns:
- the
Notificationtitle
-
getMessage
- Returns:
- the
Notificationmessage
-
getComponent
public com.vaadin.flow.component.Component getComponent()- Returns:
- the
Notificationcomponent
-
getType
- Returns:
- the
Notificationtype
-