List of usage examples for javax.swing TransferHandler subclass-usage
From source file org.feistymeow.dragdrop.DragonTransferHandler.java
/**
* A transfer handler that can be extended and used to inter-operate with DragonDropManager. This
* object is not strictly necessary to use, but it can help if one has not already implemented one's
* own transfer handler.
*
* @author Chris Koeritz
From source file MyTree.java
class FSTransfer extends TransferHandler { public boolean importData(JComponent comp, Transferable t) { if (!(comp instanceof MyTree)) { return false; } if (!t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
From source file ImageSelection.java
class ImageSelection extends TransferHandler implements Transferable { private static final DataFlavor flavors[] = { DataFlavor.imageFlavor }; private Image image;
From source file Main.java
class MyFileTransferHandler extends TransferHandler { public boolean canImport(JComponent com, DataFlavor[] dataFlavors) { for (int i = 0; i < dataFlavors.length; i++) { DataFlavor flavor = dataFlavors[i]; if (flavor.equals(DataFlavor.javaFileListFlavor)) { System.out.println("canImport: JavaFileList FLAVOR: " + flavor);
From source file MainClass.java
class MyFileTransferHandler extends TransferHandler { public boolean canImport(JComponent com, DataFlavor[] dataFlavors) { for (int i = 0; i < dataFlavors.length; i++) { DataFlavor flavor = dataFlavors[i]; if (flavor.equals(DataFlavor.javaFileListFlavor)) { System.out.println("canImport: JavaFileList FLAVOR: " + flavor);
From source file com.mirth.connect.client.ui.components.MirthTableTransferHandler.java
public abstract class MirthTableTransferHandler extends TransferHandler { private int primaryColumnIndex; private int secondaryColumnIndex; public MirthTableTransferHandler(int primaryColumnIndex, int secondaryColumnIndex) {
From source file com.mirth.connect.client.ui.components.ChannelTableTransferHandler.java
public abstract class ChannelTableTransferHandler extends TransferHandler { @Override protected Transferable createTransferable(JComponent c) { MirthTreeTable channelTable = (MirthTreeTable) c;
From source file com.codecrate.shard.ui.dragdrop.FileTransferHandler.java
public abstract class FileTransferHandler extends TransferHandler { private static final Log LOG = LogFactory.getLog(FileTransferHandler.class); private final DataFlavor fileDataFlavor; private final DataFlavor uriListFlavor;
From source file ja.lingo.application.gui.drophandler.DropHandler.java
public class DropHandler extends TransferHandler { private static final Log LOG = LogFactory.getLog(ja.lingo.application.gui.drophandler.DropHandler.class); private Resources resources = Resources.forProperties(getClass()); private IEngine engine;
From source file org.fife.ui.rtextarea.RTATextTransferHandler.java
/**
* Handles the transfer of data to/from an <code>RTextArea</code> via
* drag-and-drop. This class is pretty much ripped off from a subclass of
* <code>BasicTextUI</code>. In the future, it will include the ability to
* drag-and-drop files into <code>RTextArea</code>s (i.e., the text will be
* inserted into the text area).<p>