net.sourceforge.bee
Class TabDelimitedTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by net.sourceforge.bee.StringTransferHandler
          extended by net.sourceforge.bee.TabDelimitedTransferHandler
All Implemented Interfaces:
Serializable

public class TabDelimitedTransferHandler
extends StringTransferHandler

Allows a question to be transferred to system clipboard or another application as tab delimited text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
TabDelimitedTransferHandler(ChapterTableModel tMod)
          Creates a new TabDelimitedTransferHandler instance.
 
Method Summary
protected  void cleanup(JComponent comp, boolean remove)
          Describe cleanup method here.
protected  String exportString(JComponent comp)
          Describe exportString method here.
protected  void importString(JComponent comp, String str)
          Describe importString method here.
 
Methods inherited from class net.sourceforge.bee.StringTransferHandler
canImport, createTransferable, exportDone, getSourceActions, importData
 
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

TabDelimitedTransferHandler

public TabDelimitedTransferHandler(ChapterTableModel tMod)
Creates a new TabDelimitedTransferHandler instance.

Parameters:
tMod - a ChapterTableModel value
Method Detail

exportString

protected String exportString(JComponent comp)
Describe exportString method here.

Specified by:
exportString in class StringTransferHandler
Parameters:
comp - Description of the Parameter
Returns:
a String value

importString

protected void importString(JComponent comp,
                            String str)
Describe importString method here.

Specified by:
importString in class StringTransferHandler
Parameters:
str - a String value
comp - Description of the Parameter

cleanup

protected void cleanup(JComponent comp,
                       boolean remove)
Describe cleanup method here.

Specified by:
cleanup in class StringTransferHandler
Parameters:
remove - a boolean value
comp - Description of the Parameter