/** Returns transferable of given node * @return The transferable. */ static Transferable getNodeTransferable(Node node, int dragAction) throws IOException { return getNodeTransferable(new Node[] { node }, dragAction); }
/** Returns transferable of given node * @return The transferable. */ static Transferable getNodeTransferable (Node node, int dragAction) throws IOException { return getNodeTransferable(new Node[] { node }, dragAction); }
/** Returns transferable of given node * @return The transferable. */ static Transferable getNodeTransferable (Node node, int dragAction) throws IOException { return getNodeTransferable(new Node[] { node }, dragAction); }
transferable = DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_MOVE); exDnD.setDraggedTransferable(transferable, true); transferable = DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable(transferable, false); } else if ((possibleNodeAction & DnDConstants.ACTION_COPY) != 0) { transferable = DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable(transferable, false); } else {
DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_MOVE); exDnD.setDraggedTransferable (transferable, true); DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable (transferable, false); } else if ((possibleNodeAction & DnDConstants.ACTION_COPY) != 0) { DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable (transferable, false); } else {
DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_MOVE); exDnD.setDraggedTransferable (transferable, true); DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable (transferable, false); } else if ((possibleNodeAction & DnDConstants.ACTION_COPY) != 0) { DragDropUtilities.getNodeTransferable(nodes, DnDConstants.ACTION_COPY); exDnD.setDraggedTransferable (transferable, false); } else {