Package com.vaadin.server
Class ConnectorIdGenerationEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.server.ConnectorIdGenerationEvent
-
- All Implemented Interfaces:
Serializable
public class ConnectorIdGenerationEvent extends EventObject
Event object containing information related to connector id generation.- Since:
- 8.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ConnectorIdGenerationEvent​(VaadinSession session, ClientConnector connector)
Creates a new event for the given session and connector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientConnector
getConnector()
Gets the connector that should get an id.VaadinSession
getSession()
Gets the session for which connector id is needed.VaadinService
getSource()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ConnectorIdGenerationEvent
public ConnectorIdGenerationEvent​(VaadinSession session, ClientConnector connector)
Creates a new event for the given session and connector.- Parameters:
session
- the session for which a connector id is needed, notnull
connector
- the connector that should get an id, notnull
-
-
Method Detail
-
getSession
public VaadinSession getSession()
Gets the session for which connector id is needed.- Returns:
- the session, not
null
-
getConnector
public ClientConnector getConnector()
Gets the connector that should get an id.- Returns:
- the connector, not
null
-
getSource
public VaadinService getSource()
- Overrides:
getSource
in classEventObject
-
-