Class SuccessNotification

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
com.decs.application.views.notifications.SuccessNotification
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

public class SuccessNotification extends com.vaadin.flow.component.notification.Notification
Success Notification Class

This class builds a success notification. It is responsible for all visual components and their behavior.

Version:
1.0
Author:
Bruno Guiomar
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
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Class Private Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Creates and displays a success notification

    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, show, show

    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.HasComponents

    add, add, addComponentAsFirst, 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
  • Constructor Details

    • SuccessNotification

      private SuccessNotification()
      Class Private Constructor

      This class cannot be instantiated.

  • Method Details

    • showSuccessNotification

      public static void showSuccessNotification(String message)
      Creates and displays a success notification

      Configures the visual contents of the notification.

      Parameters:
      message - Textual content to be displayed in the notification