int getAllowedDropActions() { return view.getAllowedDropActions(); }
/** Safe accessor to the drop target which is asociated * with the tree */ DropTarget getDropTarget () { if (dropTarget == null) { dropTarget = new DropTarget(tree, view.getAllowedDropActions (), this, false); } return dropTarget; }
/** Safe accessor to the drop target which is asociated * with the tree */ DropTarget getDropTarget() { if (dropTarget == null) { dropTarget = new DropTarget(tree, view.getAllowedDropActions(), this, false); } return dropTarget; } }
/** Safe accessor to the drop target which is asociated * with the tree */ DropTarget getDropTarget () { if (dropTarget == null) { dropTarget = new DropTarget(tree, view.getAllowedDropActions (), this, false); } return dropTarget; }
public void dropActionChanged(DropTargetDragEvent dtde) { // check if the nodes are willing to do selected action Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes(); if( null != nodes ) { int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( dtde.getDropAction(), view.getAllowedDropActions() ); for (int i = 0; i < nodes.length; i++) { if ( ((view.getAllowedDropActions() & dropAction) == 0) || !DragDropUtilities.checkNodeForAction(nodes[i], dropAction) ) { // this action is not supported dtde.rejectDrag(); return; } } } return; }
public void dropActionChanged (DropTargetDragEvent dtde) { // check if the nodes are willing to do selected action Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes (); int dropAction = dtde.getDropAction (); for (int i = 0; i < nodes.length; i++) { if (((view.getAllowedDropActions () & dropAction) == 0) || !DragDropUtilities.checkNodeForAction (nodes[i], dropAction)) { // this action is not supported dtde.rejectDrag (); return ; } } return ; }
public void dropActionChanged (DropTargetDragEvent dtde) { // check if the nodes are willing to do selected action Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes (); int dropAction = dtde.getDropAction (); for (int i = 0; i < nodes.length; i++) { if (((view.getAllowedDropActions () & dropAction) == 0) || !DragDropUtilities.checkNodeForAction (nodes[i], dropAction)) { // this action is not supported dtde.rejectDrag (); return ; } } return ; }
if ((view.getAllowedDropActions() & dropAction) == 0) { return false;
if ((view.getAllowedDropActions () & dropAction) == 0) { return false;
if ((view.getAllowedDropActions () & dropAction) == 0) { return false;
dtde.getDropAction(), view.getAllowedDropActions() );
int allowedDropActions = view.getAllowedDropActions();