org.tbee.swing.dnd
Class LabelTransferHandler
java.lang.Object
javax.swing.TransferHandler
org.tbee.swing.dnd.StringTransferHandler
org.tbee.swing.dnd.LabelTransferHandler
- All Implemented Interfaces:
- Serializable
public class LabelTransferHandler
- extends StringTransferHandler
- Version:
- $Revision: 1.3 $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
LabelTransferHandler
public LabelTransferHandler()
getSourceActions
public int getSourceActions(JComponent c)
- We are a source, copy only
- Specified by:
getSourceActions in class StringTransferHandler
- Parameters:
c - the source component
exportString
protected String exportString(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(JComponent c,
String str)
- process the string
- Overrides:
importString in class StringTransferHandler
- Parameters:
c - the target component
Copyright © 2012 KnowledgePlaza. All Rights Reserved.