Class NotificationInfo

java.lang.Object
io.jmix.flowui.testassist.notification.NotificationInfo

public class NotificationInfo extends Object
POJO class for storing notification information.
  • Field Details

    • notification

      protected final com.vaadin.flow.component.notification.Notification notification
    • text

      protected String text
    • title

      protected String title
    • message

      protected String message
    • component

      protected com.vaadin.flow.component.Component component
    • type

      protected Notifications.Type type
  • Constructor Details

    • NotificationInfo

      public NotificationInfo(com.vaadin.flow.component.notification.Notification notification)
      Creates a NotificationInfo of the passed Notification.
      Parameters:
      notification - Notification to create NotificationInfo
  • Method Details

    • withText

      protected NotificationInfo withText(String text)
      Sets the text of the Notification.
      Parameters:
      text - text to set
      Returns:
      this
    • withTitle

      protected NotificationInfo withTitle(String title)
      Sets the title of the Notification.
      Parameters:
      title - title to set
      Returns:
      this
    • withMessage

      protected NotificationInfo withMessage(String message)
      Sets the message of the Notification.
      Parameters:
      message - message to set
      Returns:
      this
    • withComponent

      protected NotificationInfo withComponent(com.vaadin.flow.component.Component component)
      Sets the component of the Notification.
      Parameters:
      component - component to set
      Returns:
      this
    • withType

      protected NotificationInfo withType(Notifications.Type type)
      Sets the type of the Notification.
      Parameters:
      type - type to set
      Returns:
      this
    • getNotification

      public com.vaadin.flow.component.notification.Notification getNotification()
      Returns:
      Notification instance
    • getText

      public String getText()
      Returns:
      the Notification text
    • getTitle

      public String getTitle()
      Returns:
      the Notification title
    • getMessage

      public String getMessage()
      Returns:
      the Notification message
    • getComponent

      public com.vaadin.flow.component.Component getComponent()
      Returns:
      the Notification component
    • getType

      public Notifications.Type getType()
      Returns:
      the Notification type