Class NotificationInfo
java.lang.Object
io.jmix.flowui.testassist.notification.NotificationInfo
POJO class for storing notification information.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.Componentprotected Stringprotected final com.vaadin.flow.component.notification.Notificationprotected Stringprotected Stringprotected Notifications.Type
- 
Constructor SummaryConstructorsConstructorDescriptionNotificationInfo(com.vaadin.flow.component.notification.Notification notification) Creates aNotificationInfoof the passedNotification.
- 
Method SummaryModifier 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- 
notificationprotected final com.vaadin.flow.component.notification.Notification notification
- 
text
- 
title
- 
message
- 
componentprotected com.vaadin.flow.component.Component component
- 
type
 
- 
- 
Constructor Details- 
NotificationInfopublic NotificationInfo(com.vaadin.flow.component.notification.Notification notification) Creates aNotificationInfoof the passedNotification.- Parameters:
- notification-- Notificationto create- NotificationInfo
 
 
- 
- 
Method Details- 
withTextSets thetextof theNotification.- Parameters:
- text- text to set
- Returns:
- this
 
- 
withTitleSets thetitleof theNotification.- Parameters:
- title- title to set
- Returns:
- this
 
- 
withMessageSets themessageof theNotification.- Parameters:
- message- message to set
- Returns:
- this
 
- 
withComponentSets thecomponentof theNotification.- Parameters:
- component- component to set
- Returns:
- this
 
- 
withTypeSets thetypeof theNotification.- Parameters:
- type- type to set
- Returns:
- this
 
- 
getNotificationpublic com.vaadin.flow.component.notification.Notification getNotification()- Returns:
- Notificationinstance
 
- 
getText- Returns:
- the Notificationtext
 
- 
getTitle- Returns:
- the Notificationtitle
 
- 
getMessage- Returns:
- the Notificationmessage
 
- 
getComponentpublic com.vaadin.flow.component.Component getComponent()- Returns:
- the Notificationcomponent
 
- 
getType- Returns:
- the Notificationtype
 
 
-