com.alee.extended.drag
Class TextDragHandler
java.lang.Object
javax.swing.TransferHandler
com.alee.extended.drag.TextDragHandler
- All Implemented Interfaces:
- java.io.Serializable
public class TextDragHandler
- extends javax.swing.TransferHandler
User: mgarin Date: 12.04.12 Time: 18:36
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.TransferHandler |
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
Constructor Summary |
TextDragHandler(javax.swing.JComponent component)
|
TextDragHandler(javax.swing.JComponent component,
java.lang.String text)
|
TextDragHandler(javax.swing.JComponent component,
java.lang.String text,
boolean defaultBehavior)
|
Methods inherited from class javax.swing.TransferHandler |
canImport, canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData, importData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextDragHandler
public TextDragHandler(javax.swing.JComponent component)
TextDragHandler
public TextDragHandler(javax.swing.JComponent component,
java.lang.String text)
TextDragHandler
public TextDragHandler(javax.swing.JComponent component,
java.lang.String text,
boolean defaultBehavior)
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
isDefaultBehavior
public boolean isDefaultBehavior()
setDefaultBehavior
public void setDefaultBehavior(boolean defaultBehavior)
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in class javax.swing.TransferHandler
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in class javax.swing.TransferHandler