com.vaadin.flow.component.notification.

Class GeneratedVaadinNotification<R extends GeneratedVaadinNotification<R>>

  • All Implemented Interfaces:

    AttachNotifier, DetachNotifier, HasElement, Serializable

    Direct Known Subclasses:

    Notification


    @Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.0-SNAPSHOT","WebComponent: Vaadin.NotificationElement#1.0.0","Flow#1.0-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 Polymer 2 element providing accessible and customizable notifications (toasts).

    <vaadin-notification> <template> Your work has been saved </template> </vaadin-notification>

    See Also:

    Serialized Form

    • Constructor Detail

      • GeneratedVaadinNotification

        public GeneratedVaadinNotification()
    • Method Detail

      • getDurationDouble

        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.

        Returns:

        the duration property from the webcomponent

      • setDuration

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

        Parameters:

        duration - the double value to set

      • isOpenedBoolean

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

        Returns:

        the opened property from the webcomponent

      • setOpened

        protected void setOpened(boolean opened)

        Description copied from corresponding location in WebComponent:

        True if the notification is currently displayed.

        Parameters:

        opened - the boolean value to set

      • getPositionString

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

        Returns:

        the position property from the webcomponent

      • setPosition

        protected 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

        Parameters:

        position - the String value to set

      • open

        protected void open()

        Description copied from corresponding location in WebComponent:

        Opens the notification.

      • close

        protected void close()

        Description copied from corresponding location in WebComponent:

        Closes the notification.