JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class CellRangeFlavor

java.lang.Object
  |
  +--com.klg.jclass.table.CellRangeFlavor
All Implemented Interfaces:
ClipboardOwner, Transferable

public class CellRangeFlavor
extends Object
implements Transferable, ClipboardOwner

CellRangeFlavor is a Transferable object that passes cell data through a Vector of cells.


Field Summary
protected  Vector cells
           
protected  com.klg.jclass.table.JCCellRange cr
           
protected  DataFlavor flavor
           
protected  com.klg.jclass.table.JCTable table
           
 
Constructor Summary
CellRangeFlavor(com.klg.jclass.table.JCTable table, com.klg.jclass.table.JCCellRange cr)
          Create a new CellRangeFlavor given a range of cells from table and creates a copy of the data in vector format.
 
Method Summary
 Object getTransferData(DataFlavor f)
          Returns the vector of cells in the given DataFlavor format.
 DataFlavor[] getTransferDataFlavors()
          Returns the CellRange data flavor.
 boolean isDataFlavorSupported(DataFlavor f)
          Returns true if the DataFlavor matche the CellRange flavor.
 void lostOwnership(Clipboard clipboard, Transferable contents)
          Destroys the copy of cells when notified that this object is no longer the owner of the contents of the clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected com.klg.jclass.table.JCTable table

cr

protected com.klg.jclass.table.JCCellRange cr

flavor

protected DataFlavor flavor

cells

protected Vector cells
Constructor Detail

CellRangeFlavor

public CellRangeFlavor(com.klg.jclass.table.JCTable table,
                       com.klg.jclass.table.JCCellRange cr)
Create a new CellRangeFlavor given a range of cells from table and creates a copy of the data in vector format.

Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Returns the CellRange data flavor.

Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor f)
Returns true if the DataFlavor matche the CellRange flavor.

Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor f)
                       throws UnsupportedFlavorException
Returns the vector of cells in the given DataFlavor format.

Specified by:
getTransferData in interface Transferable
UnsupportedFlavorException

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Destroys the copy of cells when notified that this object is no longer the owner of the contents of the clipboard.

Specified by:
lostOwnership in interface ClipboardOwner

Copyright © 2004 Quest Software Inc..
All rights reserved.