Overview  Package   Class  Tree  Index 

be.lassi.ui.patch
Class PatchChannelTransferable

java.lang.Object
  extended by be.lassi.ui.patch.PatchChannelTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class PatchChannelTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable

Wrapper arround a collection of Channel objects to support tranfer operations. Both the generic 'string flavor' and a special Channel flavor are supported.


Field Summary
static java.awt.datatransfer.DataFlavor FLAVOR
          Specific flavor for channels.
 
Constructor Summary
PatchChannelTransferable(PatchPresentationModel model, int[] selectedRows)
          Constructs a new instance.
 
Method Summary
 int[] getSelectedRows()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
          
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAVOR

public static final java.awt.datatransfer.DataFlavor FLAVOR
Specific flavor for channels.

Constructor Detail

PatchChannelTransferable

public PatchChannelTransferable(PatchPresentationModel model,
                                int[] selectedRows)
Constructs a new instance.

Parameters:
channels - the channels to be transferred
Method Detail

getSelectedRows

public int[] getSelectedRows()

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2