@Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.1-SNAPSHOT","WebComponent: Vaadin.NotificationElement#1.1.0","Flow#1.1-SNAPSHOT"}) @Tag(value="vaadin-notification") @HtmlImport(value="frontend://bower_components/vaadin-notification/src/vaadin-notification.html") public abstract class GeneratedVaadinNotification<R extends GeneratedVaadinNotification<R>> extends Component
Description copied from corresponding location in WebComponent:
<vaadin-notification>
is a Web Component providing accessible and
customizable notifications (toasts).
<vaadin-notification>
<template>
Your work has been saved
</template>
</vaadin-notification>
Modifier and Type | Class and Description |
---|---|
static class |
GeneratedVaadinNotification.OpenedChangeEvent<R extends GeneratedVaadinNotification<R>> |
Constructor and Description |
---|
GeneratedVaadinNotification() |
Modifier and Type | Method and Description |
---|---|
protected Registration |
addOpenedChangeListener(ComponentEventListener<GeneratedVaadinNotification.OpenedChangeEvent<R>> listener)
Adds a listener for
opened-changed events fired by the
webcomponent. |
protected void |
close()
Description copied from corresponding location in WebComponent:
|
protected double |
getDurationDouble()
Description copied from corresponding location in WebComponent:
|
protected String |
getPositionString()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isOpenedBoolean()
Description copied from corresponding location in WebComponent:
|
protected void |
open()
Description copied from corresponding location in WebComponent:
|
protected void |
setDuration(double duration)
Description copied from corresponding location in WebComponent:
|
protected void |
setOpened(boolean opened)
Description copied from corresponding location in WebComponent:
|
protected void |
setPosition(String position)
Description copied from corresponding location in WebComponent:
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttachListener
addDetachListener
protected double getDurationDouble()
Description copied from corresponding location in WebComponent:
The duration in milliseconds to show the notification. Set to 0
or a negative number to disable the notification auto-closing.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
duration
property from the webcomponentprotected void setDuration(double duration)
Description copied from corresponding location in WebComponent:
The duration in milliseconds to show the notification. Set to 0
or a negative number to disable the notification auto-closing.
duration
- the double value to set@Synchronize(property="opened", value="opened-changed") protected boolean isOpenedBoolean()
Description copied from corresponding location in WebComponent:
True if the notification is currently displayed.
This property is synchronized automatically from client side when a 'opened-changed' event happens.
opened
property from the webcomponentprotected void setOpened(boolean opened)
Description copied from corresponding location in WebComponent:
True if the notification is currently displayed.
opened
- the boolean value to setprotected String getPositionString()
Description copied from corresponding location in WebComponent:
Alignment of the notification in the viewport Valid values are
top-stretch|top-start|top-center|top-end|middle|bottom-start|bottom-center|bottom-end|bottom-stretch
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
position
property from the webcomponentprotected void setPosition(String position)
Description copied from corresponding location in WebComponent:
Alignment of the notification in the viewport Valid values are
top-stretch|top-start|top-center|top-end|middle|bottom-start|bottom-center|bottom-end|bottom-stretch
position
- the String value to setprotected void open()
Description copied from corresponding location in WebComponent:
Opens the notification.
protected void close()
Description copied from corresponding location in WebComponent:
Closes the notification.
protected Registration addOpenedChangeListener(ComponentEventListener<GeneratedVaadinNotification.OpenedChangeEvent<R>> listener)
opened-changed
events fired by the
webcomponent.listener
- the listenerRegistration
for removing the event listenerCopyright © 2018. All rights reserved.