Class NotificationConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.ui.notification.NotificationConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ServerConnector
,Connector
,Serializable
public class NotificationConnector extends AbstractExtensionConnector
The client-side connector for theNotification
.- Since:
- 8.2
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotificationConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extend(ServerConnector target)
Called when the extension is attached to its parent.NotificationState
getState()
Returns the shared state object for this connector.void
onUnregister()
Event called when connector has been unregistered.-
Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParent
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState
-
-
-
-
Method Detail
-
getState
public NotificationState getState()
Description copied from class:AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getState
in interfaceServerConnector
- Overrides:
getState
in classAbstractConnector
- Returns:
- the current shared state (never null)
-
extend
protected void extend(ServerConnector target)
Description copied from class:AbstractExtensionConnector
Called when the extension is attached to its parent. This method is only called once as an extension cannot be moved from one parent to another.- Specified by:
extend
in classAbstractExtensionConnector
- Parameters:
target
- The connector this extension extends
-
onUnregister
public void onUnregister()
Description copied from interface:ServerConnector
Event called when connector has been unregistered.- Specified by:
onUnregister
in interfaceServerConnector
- Overrides:
onUnregister
in classAbstractConnector
-
-