com.alee.extended.drag
Class TextDragHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
 
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)
           
 
Method Summary
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
           
 int getSourceActions(javax.swing.JComponent c)
           
 java.lang.String getText()
           
 boolean isDefaultBehavior()
           
 void setDefaultBehavior(boolean defaultBehavior)
           
 void setText(java.lang.String text)
           
 
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
 

Constructor Detail

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)
Method Detail

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