dsto.dfc.swing.table
Class TableModelTransferable

java.lang.Object
  extended by dsto.dfc.swing.table.TableModelTransferable
All Implemented Interfaces:
ClipboardOwner, Transferable

public final class TableModelTransferable
extends Object
implements Transferable, ClipboardOwner

Datatransfer transferable implementation for TableModel's.

Version:
$Revision$

Field Summary
static DataFlavor TABLE_MODEL_FLAVOR
           
 
Constructor Summary
TableModelTransferable(TableModel tableModel)
           
 
Method Summary
 Object getTransferData(DataFlavor flavor)
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 void lostOwnership(Clipboard clipboard, Transferable contents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_MODEL_FLAVOR

public static final DataFlavor TABLE_MODEL_FLAVOR
Constructor Detail

TableModelTransferable

public TableModelTransferable(TableModel tableModel)
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
                              IOException
Specified by:
getTransferData in interface Transferable
Throws:
UnsupportedFlavorException
IOException

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Specified by:
lostOwnership in interface ClipboardOwner


Copyright © 2008 Commonwealth of Australia