Overview  Package   Class  Tree  Index 

be.lassi.ui.patch
Class PatchChannelTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by be.lassi.ui.patch.PatchChannelTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class PatchChannelTransferHandler
extends javax.swing.TransferHandler

Handles the transfer of channel data to and from the channel table in the patch frame.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
PatchChannelTransferHandler(Table channelTable, PatchPresentationModel model)
          Constructs a new transfer handler.
 
Method Summary
 boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
          
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
          
 int getSourceActions(javax.swing.JComponent c)
          
 boolean importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
          
 
Methods inherited from class javax.swing.TransferHandler
exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchChannelTransferHandler

public PatchChannelTransferHandler(Table channelTable,
                                   PatchPresentationModel model)
Constructs a new transfer handler.

Parameters:
model - the patch model
Method Detail

canImport

public boolean canImport(javax.swing.JComponent c,
                         java.awt.datatransfer.DataFlavor[] flavors)

Overrides:
canImport 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

importData

public boolean importData(javax.swing.JComponent c,
                          java.awt.datatransfer.Transferable t)

Overrides:
importData in class javax.swing.TransferHandler

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2