Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
static class: BasicTextUI.TextTransferHandler.TextTransferable [javadoc | source]
java.lang.Object
   javax.swing.plaf.basic.BasicTransferable
      javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable

All Implemented Interfaces:
    Transferable, UIResource

A possible implementation of the Transferable interface for text components. For a JEditorPane with a rich set of EditorKit implementations, conversions could be made giving a wider set of formats. This is implemented to offer up only the active content type and text/plain (if that is not the active format) since that can be extracted from other formats.
Field Summary
 Position p0     
 Position p1     
 String mimeType     
 String richText     
 JTextComponent c     
Fields inherited from javax.swing.plaf.basic.BasicTransferable:
plainData,  htmlData
Constructor:
 TextTransferable(JTextComponent c,
    int start,
    int end) 
Method from javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable Summary:
getRicherData,   getRicherFlavors,   removeText
Methods from javax.swing.plaf.basic.BasicTransferable:
getHTMLData,   getPlainData,   getRicherData,   getRicherFlavors,   getTransferData,   getTransferDataFlavors,   isDataFlavorSupported,   isHTMLFlavor,   isHTMLSupported,   isPlainFlavor,   isPlainSupported,   isRicherFlavor,   isStringFlavor
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable Detail:
 protected Object getRicherData(DataFlavor flavor) throws UnsupportedFlavorException 
    The only richer format supported is the file list flavor
 protected DataFlavor[] getRicherFlavors() 
    If the EditorKit is not for text/plain or text/html, that format is supported through the "richer flavors" part of BasicTransferable.
  void removeText()