Class VNotification

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
org.vaadin.firitin.components.notification.VNotification
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, FluentAttachNotifier<VNotification>, FluentComponent<VNotification>, FluentDetachNotifier<VNotification>, FluentHasComponents<VNotification>, FluentHasTheme<VNotification>

public class VNotification extends com.vaadin.flow.component.notification.Notification implements FluentComponent<VNotification>, FluentHasComponents<VNotification>, FluentHasTheme<VNotification>
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
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VNotification(com.vaadin.flow.component.Component... components)
     
     
    VNotification(String text, int duration)
     
    VNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    show(String text)
     
    show(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)
     
    show(String text, com.vaadin.flow.component.notification.Notification.Position position)
     
    withDuration(int duration)
     
     
    withOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.notification.Notification.OpenedChangeEvent> listener)
     
    withPosition(com.vaadin.flow.component.notification.Notification.Position position)
     
     
    withThemeVariants(com.vaadin.flow.component.notification.NotificationVariant... variants)
     

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

    add, addAttachListener, addComponentAtIndex, addDetachListener, addOpenedChangeListener, close, getClassNames, getDuration, getPosition, getStyle, isOpened, onAttach, onDetach, open, setClassName, setDuration, setOpened, setPosition, setText

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

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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.AttachNotifier

    addAttachListener

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

    addDetachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier

    withAttachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent

    setId, setVisible, withId, withVisible

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier

    withDetachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasComponents

    navigate, withComponentAsFirst, withComponentAtIndex, withComponents

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTheme

    withThemeNames

    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, hasClassName, removeClassName, removeClassNames, setClassName

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

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

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

    addThemeVariants, removeThemeVariants
  • Field Details

  • Constructor Details

    • 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 Details

    • 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)
    • show

      public static VNotification show(String text)
    • withText

      public VNotification withText(String text)
    • withPosition

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

      public VNotification withOpen()
    • withDuration

      public VNotification withDuration(int duration)
    • withOpenedChangeListener

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

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