com.vaadin.client.extensions.
Class FileDownloaderConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.extensions.AbstractEventTriggerExtensionConnector
-
- com.vaadin.client.extensions.FileDownloaderConnector
-
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ServerConnector
,Connector
,Serializable
public class FileDownloaderConnector extends AbstractEventTriggerExtensionConnector
See Also:
-
-
Constructor Summary
Constructors Constructor Description FileDownloaderConnector()
-
Method Summary
All Methods Modifier and Type Method Description FileDownloaderState
getState()
Returns the shared state object for this connector.
void
setParent​(ServerConnector parent)
Sets the parent for this connector.
protected void
trigger()
Called when the download should start.
-
Methods inherited from class com.vaadin.client.extensions.AbstractEventTriggerExtensionConnector
extend, onUnregister
-
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
-
trigger
protected void trigger()
Called when the download should start.
Specified by:
trigger
in classAbstractEventTriggerExtensionConnector
Since:
8.4
-
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 interfaceServerConnector
Overrides:
setParent
in classAbstractExtensionConnector
Parameters:
parent
- The new parent of the connector
-
getState
public FileDownloaderState 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 classAbstractEventTriggerExtensionConnector
Returns:
the current shared state (never null)
-
-