portaview.dnd
Class AlbumTransfer

java.lang.Object
  extended byportaview.dnd.AlbumTransfer
All Implemented Interfaces:
java.awt.datatransfer.Transferable

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

Transfer object for the drag and drop the album to the portaview.

Author:
William Lee

Field Summary
static java.awt.datatransfer.DataFlavor FLAVOUR
           
protected  javax.swing.JComponent source
           
 
Constructor Summary
AlbumTransfer(javax.swing.JComponent src)
           
 
Method Summary
 javax.swing.JComponent getSource()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
          Returns the transfer data.
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Returns the default data flavor (local jvm object).
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
          Returns true if the flavor is the jvm local MIME type.
 void setSource(javax.swing.JComponent component)
          Sets the source component for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAVOUR

public static java.awt.datatransfer.DataFlavor FLAVOUR

source

protected javax.swing.JComponent source
Constructor Detail

AlbumTransfer

public AlbumTransfer(javax.swing.JComponent src)
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Returns the default data flavor (local jvm object).

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
See Also:
Transferable.getTransferDataFlavors()

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns true if the flavor is the jvm local MIME type.

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
See Also:
Transferable.isDataFlavorSupported(java.awt.datatransfer.DataFlavor)

getTransferData

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

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
See Also:
Transferable.getTransferData(java.awt.datatransfer.DataFlavor)

getSource

public javax.swing.JComponent getSource()
Returns:
the source for this drag and drop event.

setSource

public void setSource(javax.swing.JComponent component)
Sets the source component for this event.

Parameters:
component - the source for the drag and drop.


Copyright © 2003 The PortaView Team. All Rights Reserved.