portaview.dnd
Class AlbumTransferHandler

java.lang.Object
  extended byjavax.swing.TransferHandler
      extended byportaview.dnd.AlbumTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class AlbumTransferHandler
extends javax.swing.TransferHandler

The transfer handler of for the DnD from the album to the portaview.

Author:
William Lee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
AlbumTransferHandler()
           
 
Method Summary
 boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] transferFlavors)
          Returns true if this handler can handle this event.
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
           
protected  void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable t, int action)
          Action performed after the drop is completed
 int getSourceActions(javax.swing.JComponent c)
          Returns the source actions.
 boolean importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
          From the transferable object, import the data to the PortaView icons.
 
Methods inherited from class javax.swing.TransferHandler
exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlbumTransferHandler

public AlbumTransferHandler()
Method Detail

importData

public boolean importData(javax.swing.JComponent c,
                          java.awt.datatransfer.Transferable t)
From the transferable object, import the data to the PortaView icons. This actually changes the model for the PortaView that the user tries to drop to.


canImport

public boolean canImport(javax.swing.JComponent c,
                         java.awt.datatransfer.DataFlavor[] transferFlavors)
Returns true if this handler can handle this event.


getSourceActions

public int getSourceActions(javax.swing.JComponent c)
Returns the source actions.


createTransferable

protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)

exportDone

protected void exportDone(javax.swing.JComponent source,
                          java.awt.datatransfer.Transferable t,
                          int action)
Action performed after the drop is completed



Copyright © 2003 The PortaView Team. All Rights Reserved.