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 ofTreeGridDropTarget.- Since:
- 8.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
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 Instance Methods Concrete Methods Modifier and Type Method Description TreeGridDropTargetStategetState()Returns the shared state object for this connector.protected voidsendDropEventToServer(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:DropTargetExtensionConnectorInitiates a server RPC for the drop event.- Overrides:
sendDropEventToServerin classGridDropTargetConnector- Parameters:
types- List of data types fromDataTransfer.typesobject.data- Map containing all types and corresponding data from theDataTransferobject.dropEffect- The desired drop effect.
-
getState
public TreeGridDropTargetState getState()
Description copied from class:AbstractConnectorReturns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classGridDropTargetConnector- Returns:
- the current shared state (never null)
-
-