org.tbee.swing.dnd
Class LabelTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.tbee.swing.dnd.StringTransferHandler
          extended by org.tbee.swing.dnd.LabelTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class LabelTransferHandler
extends StringTransferHandler

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
LabelTransferHandler()
           
 
Method Summary
protected  java.lang.String exportString(javax.swing.JComponent c)
          create the string
 int getSourceActions(javax.swing.JComponent c)
          We are a source, copy only
protected  void importString(javax.swing.JComponent c, java.lang.String str)
          process the string
protected  boolean isDropTarget()
          We are a target
 
Methods inherited from class org.tbee.swing.dnd.StringTransferHandler
canImport, createTransferable, exportDone, importData
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

LabelTransferHandler

public LabelTransferHandler()
Method Detail

getSourceActions

public int getSourceActions(javax.swing.JComponent c)
We are a source, copy only

Specified by:
getSourceActions in class StringTransferHandler
Parameters:
c - the source component

exportString

protected java.lang.String exportString(javax.swing.JComponent c)
create the string

Overrides:
exportString in class StringTransferHandler
Parameters:
c - the source component
Returns:

isDropTarget

protected boolean isDropTarget()
We are a target

Specified by:
isDropTarget in class StringTransferHandler
Returns:

importString

protected void importString(javax.swing.JComponent c,
                            java.lang.String str)
process the string

Overrides:
importString in class StringTransferHandler
Parameters:
c - the target component


Copyright © 2010 KnowledgePlaza. All Rights Reserved.