Class VNotification
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.notification.GeneratedVaadinNotification<com.vaadin.flow.component.notification.Notification>
-
- 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,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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.notification.Notification
com.vaadin.flow.component.notification.Notification.OpenedChangeEvent<T extends com.vaadin.flow.component.notification.GeneratedVaadinNotification<T>>, com.vaadin.flow.component.notification.Notification.Position
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_DURATION
-
Constructor Summary
Constructors Constructor Description VNotification(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VNotificationshow(String text)static VNotificationshow(String text, int duration, com.vaadin.flow.component.notification.Notification.Position position)static VNotificationshow(String text, com.vaadin.flow.component.notification.Notification.Position position)VNotificationwithDuration(int duration)VNotificationwithOpen()VNotificationwithOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.notification.Notification.OpenedChangeEvent<com.vaadin.flow.component.notification.Notification>> listener)VNotificationwithPosition(com.vaadin.flow.component.notification.Notification.Position position)VNotificationwithText(String text)VNotificationwithThemeVariants(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, getStyle, isOpened, onAttach, onDetach, 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, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, 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 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
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
-
-
-
-
Field Detail
-
DEFAULT_DURATION
public static final int DEFAULT_DURATION
- See Also:
- Constant Field Values
-
-
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)
-
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<com.vaadin.flow.component.notification.Notification>> listener)
-
withThemeVariants
public VNotification withThemeVariants(com.vaadin.flow.component.notification.NotificationVariant... variants)
-
-