public class TreeDragSource<E extends TreeNode<E>> extends Object implements DragSource<Tree<E>,E>, ReflowScheduler<TreeDragSource<E>>, MouseDownHandler<Tree<E>>, MouseMoveHandler<Tree<E>>, MouseUpHandler<Tree<E>>, TouchStartHandler<Tree.ContentPanel>, TouchMoveHandler<Tree.ContentPanel>, TouchEndHandler<Tree.ContentPanel>, TouchCancelHandler<Tree.ContentPanel>
Constructor and Description |
---|
TreeDragSource(AllowDrag<E> allowDrag) |
TreeDragSource(AllowDrag<E> allowDrag,
Getter<E,String> getter) |
Modifier and Type | Method and Description |
---|---|
void |
attach(Tree<E> source) |
void |
detach() |
Tree<E> |
getSource() |
boolean |
isDraggable(E draggable) |
void |
onMouseDown(MouseDownEvent<Tree<E>> event) |
void |
onMouseMove(MouseMoveEvent<Tree<E>> event) |
void |
onMouseUp(MouseUpEvent<Tree<E>> event) |
void |
onTouchCancel(TouchCancelEvent<Tree.ContentPanel> event) |
void |
onTouchEnd(TouchEndEvent<Tree.ContentPanel> event) |
void |
onTouchMove(TouchMoveEvent<Tree.ContentPanel> event) |
void |
onTouchStart(TouchStartEvent<Tree.ContentPanel> event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
public void detach()
public boolean isDraggable(E draggable)
isDraggable
in interface DragSource<Tree<E extends TreeNode<E>>,E extends TreeNode<E>>
public void onMouseDown(MouseDownEvent<Tree<E>> event)
onMouseDown
in interface MouseDownHandler<Tree<E extends TreeNode<E>>>
public void onMouseMove(MouseMoveEvent<Tree<E>> event)
onMouseMove
in interface MouseMoveHandler<Tree<E extends TreeNode<E>>>
public void onMouseUp(MouseUpEvent<Tree<E>> event)
public void onTouchCancel(TouchCancelEvent<Tree.ContentPanel> event)
onTouchCancel
in interface TouchCancelHandler<Tree.ContentPanel>
public void onTouchEnd(TouchEndEvent<Tree.ContentPanel> event)
onTouchEnd
in interface TouchEndHandler<Tree.ContentPanel>
public void onTouchMove(TouchMoveEvent<Tree.ContentPanel> event)
onTouchMove
in interface TouchMoveHandler<Tree.ContentPanel>
public void onTouchStart(TouchStartEvent<Tree.ContentPanel> event)
onTouchStart
in interface TouchStartHandler<Tree.ContentPanel>
Copyright © 2018 Xalys. All rights reserved.