Package jsky.util

Examples of jsky.util.TransferableList


                }
            }
        } else if (getSelectionCount() > 1) {
            TreePath[] paths = getSelectionPaths();

            TransferableList selections = new TransferableList();

            for (int i = 0; i < paths.length; ++i) {
                DefaultMutableTreeNode selection = (DefaultMutableTreeNode) paths[i].getLastPathComponent();

                if (selection instanceof Transferable) {
                    selections.add(selection);
                }
            }

            if (selections.size() > 0) {
                // Start the drag - a TransferableList of nodes
                fDragSource.startDrag(
                        event,
                        (event.getDragAction() == DnDConstants.ACTION_COPY)
                        ? DragSource.DefaultCopyDrop : DragSource.DefaultMoveDrop,
View Full Code Here

TOP

Related Classes of jsky.util.TransferableList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.