Class VNotification

    • Nested Class Summary

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

        com.vaadin.flow.component.notification.Notification.OpenedChangeEvent<T extends com.vaadin.flow.component.notification.GeneratedVaadinNotification<T>>, com.vaadin.flow.component.notification.Notification.Position
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_DURATION  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static VNotification show​(String text)  
      static VNotification show​(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)  
      static VNotification show​(String text, com.vaadin.flow.component.notification.Notification.Position position)  
      VNotification withDuration​(int duration)  
      VNotification withOpen()  
      VNotification withOpenedChangeListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.notification.Notification.OpenedChangeEvent<com.vaadin.flow.component.notification.Notification>> listener)  
      VNotification withPosition​(com.vaadin.flow.component.notification.Notification.Position position)  
      VNotification withText​(String text)  
      VNotification withThemeVariants​(com.vaadin.flow.component.notification.NotificationVariant... variants)  
      • Methods inherited from class com.vaadin.flow.component.notification.Notification

        add, addAttachListener, addComponentAtIndex, addDetachListener, addOpenedChangeListener, addThemeVariants, close, getChildren, getDuration, getPosition, getStyle, isOpened, onAttach, onDetach, open, remove, removeAll, removeThemeVariants, setDuration, setOpened, setPosition, setText
      • Methods inherited from class com.vaadin.flow.component.notification.GeneratedVaadinNotification

        getDurationDouble, getPositionString, isOpenedBoolean, setDuration, setPosition
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

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

        add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

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

        isEnabled, setEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.HasTheme

        addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
    • Constructor Detail

      • VNotification

        public VNotification​(String text)
      • VNotification

        public VNotification​(String text,
                             int duration)
      • VNotification

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

        public VNotification​(com.vaadin.flow.component.Component... components)
    • Method Detail

      • show

        public static VNotification show​(String text,
                                         int duration,
                                         com.vaadin.flow.component.notification.Notification.Position position)
      • show

        public static VNotification show​(String text,
                                         com.vaadin.flow.component.notification.Notification.Position position)
      • withPosition

        public VNotification withPosition​(com.vaadin.flow.component.notification.Notification.Position position)
      • withDuration

        public VNotification withDuration​(int duration)
      • withOpenedChangeListener

        public VNotification withOpenedChangeListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.notification.Notification.OpenedChangeEvent<com.vaadin.flow.component.notification.Notification>> listener)
      • withThemeVariants

        public VNotification withThemeVariants​(com.vaadin.flow.component.notification.NotificationVariant... variants)