Class CloseableNotification

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
com.appjars.view.components.CloseableNotification
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.notification.NotificationVariant>, Serializable
Direct Known Subclasses:
FreeLimitAlert

public class CloseableNotification extends com.vaadin.flow.component.notification.Notification
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.notification.Notification

    com.vaadin.flow.component.notification.Notification.OpenedChangeEvent, com.vaadin.flow.component.notification.Notification.Position
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.vaadin.flow.component.button.Button
     
    protected com.vaadin.flow.component.html.Div
     
    protected final com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    CloseableNotification(String text, int duration)
     
    CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)
     
    CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position, boolean assertive)
     
    CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position, com.vaadin.flow.component.notification.NotificationVariant... themeVariants)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     

    Methods inherited from class com.vaadin.flow.component.notification.Notification

    add, addAttachListener, addComponentAtIndex, addDetachListener, addOpenedChangeListener, bindChildren, close, getClassNames, getDuration, getPosition, getStyle, isAssertive, isOpened, onAttach, onDetach, open, setAssertive, setClassName, setDuration, setOpened, setPosition, show, show, show

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, addComponentAsFirst, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, replace

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    bindEnabled, isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, bindThemeVariant, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
  • Field Details

    • layout

      protected final com.vaadin.flow.component.orderedlayout.HorizontalLayout layout
    • content

      protected com.vaadin.flow.component.html.Div content
    • closeButton

      protected final com.vaadin.flow.component.button.Button closeButton
  • Constructor Details

    • CloseableNotification

      public CloseableNotification()
    • CloseableNotification

      public CloseableNotification(String text)
    • CloseableNotification

      public CloseableNotification(String text, int duration)
    • CloseableNotification

      public CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)
    • CloseableNotification

      public CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position, boolean assertive)
    • CloseableNotification

      public CloseableNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position, com.vaadin.flow.component.notification.NotificationVariant... themeVariants)
  • Method Details

    • setText

      public void setText(String text)
      Overrides:
      setText in class com.vaadin.flow.component.notification.Notification
    • removeAll

      public void removeAll()