Example usage for javax.swing TransferHandler subclass-usage

List of usage examples for javax.swing TransferHandler subclass-usage

Introduction

In this page you can find the example usage for javax.swing TransferHandler subclass-usage.

Usage

From source file dnd.ListTransferHandler.java

public class ListTransferHandler extends TransferHandler {
    private int[] indices = null;
    private int addIndex = -1; //Location where items were added
    private int addCount = 0; //Number of items added.

    public boolean canImport(TransferHandler.TransferSupport info) {

From source file dnd.TextTransferHandler.java

/**
 * An implementation of TransferHandler that adds support for the
 * import and export of text using drag and drop and cut/copy/paste.
 */
class TextTransferHandler extends TransferHandler {
    //Start and end position in the source text.

From source file com.frostwire.gui.library.LibraryFilesTransferHandler.java

/**
 * @author gubatron
 * @author aldenml
 * 
 */
final class LibraryFilesTransferHandler extends TransferHandler {

From source file pl.otros.logview.gui.actions.read.DragAndDropFilesHandler.java

/**
 * Responsible for global drag-and-drop operations.
 * 
 * Currently supports dropping possibly multiple log files that are then opened by autodetection.
 * 
 * @author murat

From source file org.fseek.simon.swing.filetree.dnd.FileTransferHandler.java

public class FileTransferHandler extends TransferHandler {
    private FileTransferAction cutAction;
    private FileTransferAction copyAction;
    private FileTransferAction pasteAction;

    private static DataFlavor urlFlavor;

From source file DragDropList.java

class MyListDropHandler extends TransferHandler {
    DragDropList list;

    public MyListDropHandler(DragDropList list) {
        this.list = list;
    }

From source file io.neocdtv.simpleplayer.ui.PlaylistTransferHandler.java

public class PlaylistTransferHandler extends TransferHandler {

    private final static Logger LOGGER = Logger.getLogger(LookAndFeelConfigurator.class.getName());

    private int[] indices = null;
    private int addIndex = -1; //Location where items were added

From source file Main.java

class ListTransferHandler extends TransferHandler {
    @Override
    public int getSourceActions(JComponent c) {
        return TransferHandler.COPY_OR_MOVE;
    }

From source file Main.java

class ImageSelection extends TransferHandler implements Transferable {

    private static final DataFlavor flavors[] = { DataFlavor.imageFlavor };

    private JLabel source;

From source file ClipImage.java

class ImageSelection extends TransferHandler implements Transferable {

    private static final DataFlavor flavors[] = { DataFlavor.imageFlavor };

    private JLabel source;