Class VNotification

    • Nested Class Summary

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

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

        com.vaadin.flow.component.notification.GeneratedVaadinNotification.OpenedChangeEvent<R extends com.vaadin.flow.component.notification.GeneratedVaadinNotification<R>>
    • 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.GeneratedVaadinNotification.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, isOpened, 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, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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, addComponentAsFirst, addComponentAtIndex, 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.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.GeneratedVaadinNotification.OpenedChangeEvent<com.vaadin.flow.component.notification.Notification>> listener)
      • withThemeVariants

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