Class NotificationInfo
java.lang.Object
io.jmix.flowui.testassist.notification.NotificationInfo
POJO class for storing notification information.
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.component.Component
protected String
protected final com.vaadin.flow.component.notification.Notification
protected String
protected String
protected Notifications.Type
-
Constructor Summary
ConstructorDescriptionNotificationInfo
(com.vaadin.flow.component.notification.Notification notification) Creates aNotificationInfo
of the passedNotification
. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
getText()
getTitle()
getType()
protected NotificationInfo
withComponent
(com.vaadin.flow.component.Component component) Sets thecomponent
of theNotification
.protected NotificationInfo
withMessage
(String message) Sets themessage
of theNotification
.protected NotificationInfo
Sets thetext
of theNotification
.protected NotificationInfo
Sets thetitle
of theNotification
.protected NotificationInfo
withType
(Notifications.Type type) Sets thetype
of 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 aNotificationInfo
of the passedNotification
.- Parameters:
notification
-Notification
to createNotificationInfo
-
-
Method Details
-
withText
Sets thetext
of theNotification
.- Parameters:
text
- text to set- Returns:
- this
-
withTitle
Sets thetitle
of theNotification
.- Parameters:
title
- title to set- Returns:
- this
-
withMessage
Sets themessage
of theNotification
.- Parameters:
message
- message to set- Returns:
- this
-
withComponent
Sets thecomponent
of theNotification
.- Parameters:
component
- component to set- Returns:
- this
-
withType
Sets thetype
of theNotification
.- Parameters:
type
- type to set- Returns:
- this
-
getNotification
public com.vaadin.flow.component.notification.Notification getNotification()- Returns:
Notification
instance
-
getText
- Returns:
- the
Notification
text
-
getTitle
- Returns:
- the
Notification
title
-
getMessage
- Returns:
- the
Notification
message
-
getComponent
public com.vaadin.flow.component.Component getComponent()- Returns:
- the
Notification
component
-
getType
- Returns:
- the
Notification
type
-