Package com.vaadin.ui
Class Notification.CloseEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Notification.CloseEvent
-
- All Implemented Interfaces:
HasUserOriginated
,Serializable
- Enclosing class:
- Notification
public static class Notification.CloseEvent extends ConnectorEvent implements HasUserOriginated
Event fired when a notification is closed.- Since:
- 8.2
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CloseEvent(Notification source)
CloseEvent(Notification source, boolean userOriginated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Notification
getNotification()
Gets the Notification.boolean
isUserOriginated()
Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
CloseEvent
public CloseEvent(Notification source)
- Parameters:
source
-
-
CloseEvent
public CloseEvent(Notification source, boolean userOriginated)
-
-
Method Detail
-
getNotification
public Notification getNotification()
Gets the Notification.- Returns:
- The Notification
-
isUserOriginated
public boolean isUserOriginated()
Description copied from interface:HasUserOriginated
Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.- Specified by:
isUserOriginated
in interfaceHasUserOriginated
- Returns:
true
if this event originates from the client,false
otherwise.
-
-