Class TreeDragSource<M>

    • Constructor Detail

      • TreeDragSource

        public TreeDragSource​(Tree<M,​?> tree)
        Creates a drag source for the specified tree.
        Parameters:
        tree - the tree to enable as a drag source
    • Method Detail

      • getTreeSource

        public DND.TreeSource getTreeSource()
        Returns the tree associated with this drag source.
        Returns:
        the tree associated with this drag source
      • getWidget

        public Tree<M,​?> getWidget()
        Description copied from class: DragSource
        Returns the source widget.
        Overrides:
        getWidget in class DragSource
        Returns:
        the widget
      • setTreeSource

        public void setTreeSource​(DND.TreeSource treeSource)
        Sets the tree source (defaults to DND.TreeSource.BOTH).
        Parameters:
        treeSource - the tree source