T - The TreeGrid bean type.public class TreeGridDragSource<T> extends GridDragSource<T>
When dragging a selected row, all the visible selected rows are dragged. Note that ONLY visible rows are taken into account and the subtree belonging to a selected row is not dragged either.
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
TreeGridDragSource(TreeGrid<T> target)
Extends a TreeGrid and makes it's rows draggable.
|
| Modifier and Type | Method and Description |
|---|---|
protected TreeGridDragSourceState |
getState()
Returns the shared state for this connector.
|
protected TreeGridDragSourceState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
addGridDragEndListener, addGridDragStartListener, clearDragDataGenerator, getDragDataGenerator, getGrid, registerDragSourceRpc, remove, setDragDataGeneratoraddDragEndListener, addDragStartListener, attach, clearDataTransferData, clearDataTransferData, getDataTransferData, getDataTransferData, getDataTransferText, getDragData, getEffectAllowed, getParent, onDragEnd, onDragStart, setDataTransferData, setDataTransferText, setDragData, setDragImage, setEffectAllowed, setPayload, setPayload, setPayloadextend, getSupportedParentType, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, 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, setErrorHandlergetConnectorIdprotected TreeGridDragSourceState 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 GridDragSource<T>protected TreeGridDragSourceState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class GridDragSource<T>markAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2021 Vaadin Ltd. All rights reserved.