THIS
- Self-referential generic THISpublic interface FluentNotification<THIS extends com.vaadin.ui.Notification> extends Serializable
Notification
Notification
Modifier and Type | Method and Description |
---|---|
default THIS |
withCaption(String caption)
Sets the caption part of the notification message
|
default THIS |
withDelayMsec(int delayMsec)
Sets the delay before the notification disappears.
|
default THIS |
withDescription(String description)
Sets the description part of the notification message.
|
default THIS |
withHtmlContentAllowed(boolean htmlContentAllowed)
Sets whether html is allowed in the caption and description.
|
default THIS |
withIcon(com.vaadin.server.Resource icon)
Sets the icon part of the notification message.
|
default THIS |
withPosition(com.vaadin.shared.Position position)
Sets the position of the notification message.
|
default THIS |
withStyleName(String styleName)
Sets the style name for the notification message.
|
default THIS withCaption(String caption)
caption
- The message captionNotification.setCaption(String)
default THIS withDelayMsec(int delayMsec)
delayMsec
- the desired delay in msec, -1 to require the user to click the messageNotification.setDelayMsec(int)
default THIS withDescription(String description)
description
- the description part of the notification messageNotification.setDescription(String)
default THIS withHtmlContentAllowed(boolean htmlContentAllowed)
htmlContentAllowed
- true if the texts are used as html, false if used as plain textNotification.setHtmlContentAllowed(boolean)
default THIS withIcon(com.vaadin.server.Resource icon)
icon
- The desired message iconNotification.setIcon(Resource)
default THIS withPosition(com.vaadin.shared.Position position)
position
- The desired notification positionNotification.setPosition(Position)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.