Package com.mucommander.ui.dnd

Examples of com.mucommander.ui.dnd.FileDropTargetListener


        // Enable drag support on the FileTable
        this.fileDragSourceListener = new FileDragSourceListener(this);
        fileDragSourceListener.enableDrag(fileTable);

        // Allow the location field to change the current directory when a file/folder is dropped on it
        FileDropTargetListener dropTargetListener = new FileDropTargetListener(this, true);
        locationTextField.setDropTarget(new DropTarget(locationTextField, dropTargetListener));
        driveButton.setDropTarget(new DropTarget(driveButton, dropTargetListener));
    }
View Full Code Here


        inputMap.setParent(null);
       
        fileTable.addFocusListener(this);
       
     // Enable drop support to copy/move/change current folder when files are dropped on the FileTable
        FileDropTargetListener dropTargetListener = new FileDropTargetListener(fileTable.getFolderPanel(), false);
        fileTable.setDropTarget(new DropTarget(fileTable, dropTargetListener));
        setDropTarget(new DropTarget(this, dropTargetListener));
       
     // Listens to theme events
        ThemeManager.addCurrentThemeListener(this);
View Full Code Here

TOP

Related Classes of com.mucommander.ui.dnd.FileDropTargetListener

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.