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 ; }
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; }
Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes(); for (int i=0; i<nodes.length; i++) { if (n.equals(nodes[i].getParentNode ()))
Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes();
Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes(); if (nodes != null) { for (int i = 0; i < nodes.length; i++) {
Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes(); if (nodes == null) return false;
Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes(); if (nodes == null) return false;
@Override public void dragDropEnd(DragSourceDropEvent dsde) { Node[] dropedNodes = exDnD.getDraggedNodes(); super.dragDropEnd(dsde);
Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes();
public void dropActionChanged(DropTargetDragEvent dtde) { // check if the nodes are willing to do selected action Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes(); if( null == nodes ) return; int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( dtde.getDropAction(), view.getAllowedDropActions(dtde.getTransferable()) ); for (int i = 0; i < nodes.length; i++) { if ( ((view.getAllowedDropActions(dtde.getTransferable()) & dropAction) == 0) || !DragDropUtilities.checkNodeForAction(nodes[i], dropAction) ) { // this action is not supported dtde.rejectDrag(); return; } } return; }
Node[] nodes = ExplorerDnDManager.getDefault ().getDraggedNodes(); for (int i=0; i<nodes.length; i++) { if (n.equals(nodes[i].getParentNode ()))
@Override public void dragDropEnd(DragSourceDropEvent dsde) { Node[] dropedNodes = exDnD.getDraggedNodes(); super.dragDropEnd(dsde);
public void dragDropEnd (DragSourceDropEvent dsde) { Node[] dropedNodes = exDnD.getDraggedNodes (); super.dragDropEnd (dsde);
public void dragDropEnd (DragSourceDropEvent dsde) { Node[] dropedNodes = exDnD.getDraggedNodes (); super.dragDropEnd (dsde);
Node[] nodes = ExplorerDnDManager.getDefault().getDraggedNodes();
Node[] dragNodes = ExplorerDnDManager.getDefault().getDraggedNodes(); int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( dtde.getDropAction(), view.getAllowedDropActions(dtde.getTransferable())
Node[] dragNodes = ExplorerDnDManager.getDefault().getDraggedNodes(); int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( dtde.getDropAction(), view.getAllowedDropActions()
Node [] dragNodes = ExplorerDnDManager.getDefault ().getDraggedNodes (); TreePath tp = tree.getPathForLocation (dtde.getLocation ().x, dtde.getLocation ().y); if (pointAt!=DragDropUtilities.NODE_CENTRAL) {
Node [] dragNodes = ExplorerDnDManager.getDefault ().getDraggedNodes (); TreePath tp = tree.getPathForLocation (dtde.getLocation ().x, dtde.getLocation ().y); if (pointAt!=DragDropUtilities.NODE_CENTRAL) {