org.jivesoftware.spark.ui
Class ChatRoomTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.jivesoftware.spark.ui.ChatRoomTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class ChatRoomTransferHandler
extends javax.swing.TransferHandler

Handler for drag and dropping of files unto a ChatWindow.

See Also:
Serialized Form

Nested Class Summary
 class ChatRoomTransferHandler.TranscriptWindowTransferable
           
 
Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
ChatRoomTransferHandler(ChatRoom chatRoom)
           
 
Method Summary
 boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavor)
           
 java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent comp)
           
protected  void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)
           
 int getSourceActions(javax.swing.JComponent c)
           
 boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
           
 
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

ChatRoomTransferHandler

public ChatRoomTransferHandler(ChatRoom chatRoom)
Method Detail

getSourceActions

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

canImport

public boolean canImport(javax.swing.JComponent comp,
                         java.awt.datatransfer.DataFlavor[] flavor)
Overrides:
canImport in class javax.swing.TransferHandler

exportDone

protected void exportDone(javax.swing.JComponent c,
                          java.awt.datatransfer.Transferable data,
                          int action)
Overrides:
exportDone in class javax.swing.TransferHandler

createTransferable

public java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent comp)
Overrides:
createTransferable in class javax.swing.TransferHandler

importData

public boolean importData(javax.swing.JComponent comp,
                          java.awt.datatransfer.Transferable t)
Overrides:
importData in class javax.swing.TransferHandler