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 -
Constructor Summary
ConstructorsConstructorDescriptionVNotification(com.vaadin.flow.component.Component... components) VNotification(String text) VNotification(String text, int duration) VNotification(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position) -
Method Summary
Modifier and TypeMethodDescriptionstatic VNotificationstatic VNotificationstatic VNotificationshow(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position) static VNotificationwithDuration(int duration) withOpen()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, isAssertive, isOpened, onAttach, onDetach, open, setAssertive, setClassName, setDuration, setOpened, setPosition, setText, 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.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
navigate, setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasComponents
withComponentAsFirst, withComponentAtIndex, withComponentsMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTheme
withThemeNamesMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, 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
-
Field Details
-
DEFAULT_DURATION
public static final int DEFAULT_DURATION- See Also:
-
-
Constructor Details
-
VNotification
-
VNotification
-
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
-
prominent
-
withText
-
withPosition
public VNotification withPosition(com.vaadin.flow.component.notification.Notification.Position position) -
withOpen
-
withDuration
-
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)
-