org.oboedit.gui
Class SelectionTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.oboedit.gui.SelectionTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class SelectionTransferHandler
extends javax.swing.TransferHandler

See Also:
Serialized Form

Nested Class Summary
static class SelectionTransferHandler.SelectionTransferable
           
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
protected static org.apache.log4j.Logger logger
           
protected  Selection selection
           
static java.awt.datatransfer.DataFlavor SELECTION_FLAVOR
           
protected  SelectorDragHandler selectorDragHandler
           
protected  ObjectSelector sourceSelector
           
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
SelectionTransferHandler(ObjectSelector c)
           
 
Method Summary
 boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
           
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
           
 ObjectSelector getObjectSelector()
           
 SelectorDragHandler getSelectorDragHandler()
           
 int getSourceActions(javax.swing.JComponent c)
           
 boolean importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
           
static SelectionTransferHandler installHandler(ObjectSelector c)
           
static void removeHandler(SelectionTransferHandler handler)
           
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

SELECTION_FLAVOR

public static java.awt.datatransfer.DataFlavor SELECTION_FLAVOR

sourceSelector

protected ObjectSelector sourceSelector

selection

protected Selection selection

selectorDragHandler

protected SelectorDragHandler selectorDragHandler
Constructor Detail

SelectionTransferHandler

public SelectionTransferHandler(ObjectSelector c)
Method Detail

installHandler

public static SelectionTransferHandler installHandler(ObjectSelector c)

getObjectSelector

public ObjectSelector getObjectSelector()

removeHandler

public static void removeHandler(SelectionTransferHandler handler)

getSelectorDragHandler

public SelectorDragHandler getSelectorDragHandler()

importData

public boolean importData(javax.swing.JComponent c,
                          java.awt.datatransfer.Transferable t)
Overrides:
importData in class javax.swing.TransferHandler

createTransferable

protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
Overrides:
createTransferable in class javax.swing.TransferHandler

getSourceActions

public int getSourceActions(javax.swing.JComponent c)
Overrides:
getSourceActions in class javax.swing.TransferHandler

canImport

public boolean canImport(javax.swing.JComponent c,
                         java.awt.datatransfer.DataFlavor[] flavors)
Overrides:
canImport in class javax.swing.TransferHandler