T - Type of the TreeGrid bean.public class TreeGridDropTarget<T> extends GridDropTarget<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
TreeGridDropTarget(TreeGrid<T> target,
DropMode dropMode)
Extends a TreeGrid and makes it's rows drop targets for HTML5 drag and
drop.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
addTreeGridDropListener(TreeGridDropListener<T> listener)
Attaches drop listener for the current drop target.
|
TreeGrid<T> |
getParent()
Returns the component this extension is attached to.
|
protected TreeGridDropTargetState |
getState()
Returns the shared state for this connector.
|
protected TreeGridDropTargetState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
protected void |
registerDropTargetRpc()
Registers the server side RPC methods invoked from client side on
drop event. |
addGridDropListener, getDropMode, getDropThreshold, getGrid, isDropAllowedOnRowsWhenSorted, remove, setDropAllowedOnRowsWhenSorted, setDropMode, setDropThresholdaddDropListener, attach, getDropCriteriaScript, getDropEffect, onDrop, setDropCriteria, setDropCriteriaScript, setDropCriterion, setDropCriterion, setDropCriterion, setDropEffectextend, getSupportedParentType, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdpublic Registration addTreeGridDropListener(TreeGridDropListener<T> listener)
TreeGridDropListener.drop(TreeGridDropEvent) is called when drop
event happens on the client side.listener - Listener to handle drop event.protected void registerDropTargetRpc()
DropTargetExtensiondrop event.
Override this method if you need to have a custom RPC interface for
transmitting the drop event with more data. If just need to do additional
things before firing the drop event, then you should override
DropTargetExtension.onDrop(List, Map, DropEffect, MouseEventDetails) instead.
registerDropTargetRpc in class GridDropTarget<T>public TreeGrid<T> getParent()
DropTargetExtensiongetParent in interface ClientConnectorgetParent in interface ConnectorgetParent in class DropTargetExtension<Grid<T>>protected TreeGridDropTargetState getState()
AbstractClientConnector
As a side effect, marks the connector dirty so any changes done to the
state will be sent to the client. Use getState(false) to avoid
marking the connector as dirty.
getState in class GridDropTarget<T>protected TreeGridDropTargetState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class GridDropTarget<T>markAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2019 Vaadin Ltd. All rights reserved.