org.openide.util.datatransfer
Class  ExTransferable.Single
java.lang.Object
  |
  +--org.openide.util.datatransfer.ExTransferable.Single
- All Implemented Interfaces: 
 - Transferable
 
- Enclosing class: 
 - ExTransferable
 
- public abstract static class ExTransferable.Single
- extends Object
- implements Transferable
   
Support for transferable owner with only one data flavor.
 Subclasses need only implement getData().
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ExTransferable.Single
public ExTransferable.Single(DataFlavor flavor)
- Constructor.
- Parameters:
 flavor - flavor of the data
 
 
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
 
getData
protected abstract Object getData()
                           throws IOException,
                                  UnsupportedFlavorException
- Abstract method to override to provide the right data for this
 transferable.
 
- Returns:
 - the data
 - Throws:
 IOException - when an I/O error occursUnsupportedFlavorException - if the flavor is not supported
 
 
Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.