org.jivesoftware.spark.ui
Class ContactGroupTransferHandler

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

public class ContactGroupTransferHandler
extends javax.swing.TransferHandler

See Also:
Serialized Form

Nested Class Summary
 class ContactGroupTransferHandler.ContactItemTransferable
           
 
Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
ContactGroupTransferHandler()
           
 
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)
           
 boolean removeContactItem(ContactGroup contactGroup, ContactItem item)
           
 
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

ContactGroupTransferHandler

public ContactGroupTransferHandler()
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

removeContactItem

public boolean removeContactItem(ContactGroup contactGroup,
                                 ContactItem item)