com.vaadin.client.extensions
Class AbstractExtensionConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.extensions.AbstractExtensionConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ServerConnector, com.vaadin.shared.Connector, java.io.Serializable
Direct Known Subclasses:
BrowserWindowOpenerConnector, FileDownloaderConnector, JavaScriptExtension, JavaScriptManagerConnector, ResponsiveConnector

public abstract class AbstractExtensionConnector
extends AbstractConnector

See Also:
Serialized Form

Constructor Summary
AbstractExtensionConnector()
           
 
Method Summary
protected abstract  void extend(ServerConnector target)
          Called when the extension is attached to its parent.
 void setParent(ServerConnector parent)
          Sets the parent for this connector.
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getState, getStateType, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, unregisterRpc, updateEnabledState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExtensionConnector

public AbstractExtensionConnector()
Method Detail

setParent

public void setParent(ServerConnector parent)
Description copied from interface: ServerConnector
Sets the parent for this connector. This method should only be called by the framework to ensure that the connector hierarchy on the client side and the server side are in sync.

Note that calling this method does not fire a ConnectorHierarchyChangeEvent. The event is fired only when the whole hierarchy has been updated.

Specified by:
setParent in interface ServerConnector
Overrides:
setParent in class AbstractConnector
Parameters:
parent - The new parent of the connector

extend

protected abstract void extend(ServerConnector target)
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.

Parameters:
target - The connector this extension extends


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.