com.vaadin.client.connectors.grid.
Class TreeGridDropTargetConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.extensions.DropTargetExtensionConnector
-
- com.vaadin.client.connectors.grid.GridDropTargetConnector
-
- com.vaadin.client.connectors.grid.TreeGridDropTargetConnector
-
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ServerConnector
,Connector
,Serializable
public class TreeGridDropTargetConnector extends GridDropTargetConnector
Makes TreeGrid an HTML5 drop target. This is the client side counterpart of
TreeGridDropTarget
.Since:
8.1
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.extensions.DropTargetExtensionConnector
STYLE_SUFFIX_DRAG_BOTTOM, STYLE_SUFFIX_DRAG_CENTER, STYLE_SUFFIX_DRAG_TOP, STYLE_SUFFIX_DROPTARGET
-
-
Constructor Summary
Constructors Constructor Description TreeGridDropTargetConnector()
-
Method Summary
All Methods Modifier and Type Method Description TreeGridDropTargetState
getState()
Returns the shared state object for this connector.
protected void
sendDropEventToServer(List<String> types, Map<String,String> data, String dropEffect, com.google.gwt.dom.client.NativeEvent dropEvent)
Initiates a server RPC for the drop event.
-
Methods inherited from class com.vaadin.client.connectors.grid.GridDropTargetConnector
addDragOverStyle, extend, getDropLocation, getDropTargetElement, getRowData, getTargetElement, isDropAllowedByCriteriaScript, isDroppingOnRowsPossible, onDragEnter, removeDragOverStyle
-
Methods inherited from class com.vaadin.client.extensions.DropTargetExtensionConnector
addDropTargetStyle, onDragLeave, onDragOver, onDrop, onUnregister, removeDropTargetStyle
-
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
-
sendDropEventToServer
protected void sendDropEventToServer(List<String> types, Map<String,String> data, String dropEffect, com.google.gwt.dom.client.NativeEvent dropEvent)
Description copied from class:
DropTargetExtensionConnector
Initiates a server RPC for the drop event.
Overrides:
sendDropEventToServer
in classGridDropTargetConnector
Parameters:
types
- List of data types fromDataTransfer.types
object.data
- Map containing all types and corresponding data from theDataTransfer
object.dropEffect
- The desired drop effect.
-
getState
public TreeGridDropTargetState 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 classGridDropTargetConnector
Returns:
the current shared state (never null)
-
-