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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidshowSuccessNotification(String message) Creates and displays a success notificationMethods 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, showMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
-
Constructor Details
-
SuccessNotification
private SuccessNotification()Class Private ConstructorThis class cannot be instantiated.
-
-
Method Details
-
showSuccessNotification
Creates and displays a success notificationConfigures the visual contents of the notification.
- Parameters:
message- Textual content to be displayed in the notification
-