public class TreeDropTarget<E extends TreeNode<E>,D> extends Object implements DropTarget<Tree<E>,E,D>
Constructor and Description |
---|
TreeDropTarget(Class<D> entityClass,
CanAccept<E,D> canAccept) |
TreeDropTarget(Class<D> entityClass,
CanAccept<E,D> canAccept,
Accept<E,D> accept) |
Modifier and Type | Method and Description |
---|---|
void |
accept(DragSource<?,D> dragSource,
E target,
D dragged) |
void |
attach(Tree<E> targetWidget) |
boolean |
canAccept(DragSource<?,D> dragSource,
E target,
D dragged) |
boolean |
canCast(Object object) |
void |
detach() |
E |
getTarget(Element<?> target) |
Tree<E> |
getTargetWidget() |
public Tree<E> getTargetWidget()
getTargetWidget
in interface DropTarget<Tree<E extends TreeNode<E>>,E extends TreeNode<E>,D>
public void detach()
public boolean canAccept(DragSource<?,D> dragSource, E target, D dragged)
public void accept(DragSource<?,D> dragSource, E target, D dragged)
Copyright © 2018 Xalys. All rights reserved.