Class Notifications.NotificationBuilder

java.lang.Object
io.jmix.flowui.Notifications.NotificationBuilder
Enclosing class:
Notifications

public static class Notifications.NotificationBuilder extends Object
  • Field Details

    • CLOSEABLE_LAYOUT_STYLE_NAME

      protected static final String CLOSEABLE_LAYOUT_STYLE_NAME
      See Also:
    • CLOSE_BUTTON_STYLE_NAME

      protected static final String CLOSE_BUTTON_STYLE_NAME
      See Also:
    • TEXT_LAYOUT_STYLE_NAME

      protected static final String TEXT_LAYOUT_STYLE_NAME
      See Also:
    • TITLE_STYLE_NAME

      protected static final String TITLE_STYLE_NAME
      See Also:
    • MESSAGE_STYLE_NAME

      protected static final String MESSAGE_STYLE_NAME
      See Also:
    • TEXT_CONTENT_STYLE_NAME

      protected static final String TEXT_CONTENT_STYLE_NAME
      See Also:
    • COMPONENT_CONTENT_STYLE_NAME

      protected static final String COMPONENT_CONTENT_STYLE_NAME
      See Also:
    • WARNING_THEME_NAME

      protected static final String WARNING_THEME_NAME
      See Also:
    • notification

      protected 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
    • position

      protected com.vaadin.flow.component.notification.Notification.Position position
    • duration

      protected int duration
    • type

      protected Notifications.Type type
    • closeable

      protected Boolean closeable
    • themeVariant

      protected com.vaadin.flow.component.notification.NotificationVariant themeVariant
  • Constructor Details

    • NotificationBuilder

      public NotificationBuilder(String text)
    • NotificationBuilder

      public NotificationBuilder(String title, String message)
    • NotificationBuilder

      public NotificationBuilder(com.vaadin.flow.component.Component component)
  • Method Details

    • withPosition

      public Notifications.NotificationBuilder withPosition(com.vaadin.flow.component.notification.Notification.Position position)
    • withDuration

      public Notifications.NotificationBuilder withDuration(int duration)
    • withType

    • withCloseable

      public Notifications.NotificationBuilder withCloseable(boolean closeable)
    • withThemeVariant

      public Notifications.NotificationBuilder withThemeVariant(com.vaadin.flow.component.notification.NotificationVariant themeVariant)
    • getPosition

      public com.vaadin.flow.component.notification.Notification.Position getPosition()
    • getDuration

      public int getDuration()
    • getType

      public Notifications.Type getType()
    • isCloseable

      public boolean isCloseable()
    • getText

      @Nullable public String getText()
    • getTitle

      @Nullable public String getTitle()
    • getMessage

      @Nullable public String getMessage()
    • getComponent

      @Nullable public com.vaadin.flow.component.Component getComponent()
    • build

      public com.vaadin.flow.component.notification.Notification build()
    • show

      public void show()
    • applyDefaults

      protected Notifications.NotificationBuilder applyDefaults(FlowUiComponentProperties properties)
    • buildNotificationContent

      @Nullable protected com.vaadin.flow.component.Component buildNotificationContent()
    • createTextLayout

      protected com.vaadin.flow.component.HasComponents createTextLayout()
    • createTitleComponent

      protected com.vaadin.flow.component.Component createTitleComponent(String title)
    • createMessageComponent

      protected com.vaadin.flow.component.Component createMessageComponent(String message)
    • createCloseableLayout

      protected com.vaadin.flow.component.HasComponents createCloseableLayout()
    • createCloseButton

      protected com.vaadin.flow.component.button.Button createCloseButton()
    • onCloseButtonClick

      protected void onCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • isInternalCloseable

      protected boolean isInternalCloseable()
    • createNotification

      protected com.vaadin.flow.component.notification.Notification createNotification()
    • convertTypeToThemeName

      protected String convertTypeToThemeName(Notifications.Type type)