com.vaadin.ui.components.grid.

Class TreeGridDragSource<T>

  • Type Parameters:

    T - The TreeGrid bean type.

    All Implemented Interfaces:

    MethodEventSource, ClientConnector, Extension, Connector, Serializable

    public class TreeGridDragSource<T>
    extends GridDragSource<T>

    Makes a TreeGrid's rows draggable for HTML5 drag and drop functionality.

    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.

    Since:

    8.1

    Author:

    Vaadin Ltd.

    See Also:

    Serialized Form

    • Constructor Detail

      • TreeGridDragSource

        public TreeGridDragSource​(TreeGrid<T> target)

        Extends a TreeGrid and makes it's rows draggable.

        Parameters:

        target - TreeGrid to be extended.

    • Method Detail

      • getState

        protected TreeGridDragSourceState getState()

        Description copied from class: AbstractClientConnector

        Returns the shared state for this connector. The shared state object is shared between the server connector and the client connector. Changes are only communicated from the server to the client and not in the other direction.

        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.

        Overrides:

        getState in class GridDragSource<T>

        Returns:

        The shared state for this connector. Never null.