org.ceryle.ui
Class XidTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.ceryle.ui.XidTransferHandler
All Implemented Interfaces:
Serializable

public class XidTransferHandler
extends TransferHandler

For drag-and-drop of Document IDs, which combined with a Collection ID becomes an XNode ID (XID).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
XidTransferHandler(View view)
           
 
Method Summary
 boolean canImport(JComponent c, DataFlavor[] transferFlavors)
           
protected  Transferable createTransferable(JComponent c)
           
 void exportAsDrag(JComponent c, InputEvent e, int action)
           
 void exportDone(JComponent source, Transferable data, int action)
           
 int getSourceActions(JComponent c)
           
 Icon getVisualRepresentation(Transferable t)
           
 boolean importData(JComponent c, Transferable t)
           
 void setNavigateUI(TMNavigateUI tmnavui)
          Sets the UI listener to respond to exportDone() messages, to restore normal functioning following a drag and drop event.
 
Methods inherited from class javax.swing.TransferHandler
exportToClipboard, getCopyAction, getCutAction, getPasteAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XidTransferHandler

public XidTransferHandler(View view)
Method Detail

canImport

public boolean canImport(JComponent c,
                         DataFlavor[] transferFlavors)
Overrides:
canImport in class TransferHandler

importData

public boolean importData(JComponent c,
                          Transferable t)
Overrides:
importData in class TransferHandler

exportAsDrag

public void exportAsDrag(JComponent c,
                         InputEvent e,
                         int action)
Overrides:
exportAsDrag in class TransferHandler

exportDone

public void exportDone(JComponent source,
                       Transferable data,
                       int action)
Overrides:
exportDone in class TransferHandler

setNavigateUI

public void setNavigateUI(TMNavigateUI tmnavui)
Sets the UI listener to respond to exportDone() messages, to restore normal functioning following a drag and drop event.


getSourceActions

public int getSourceActions(JComponent c)
Overrides:
getSourceActions in class TransferHandler

getVisualRepresentation

public Icon getVisualRepresentation(Transferable t)
Overrides:
getVisualRepresentation in class TransferHandler

createTransferable

protected Transferable createTransferable(JComponent c)
Overrides:
createTransferable in class TransferHandler


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.