ConForM.CoopnTools.CoKer.CoopnMgr
Class CoopnSelection

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.CoopnStringSelection
        |
        +--ConForM.CoopnTools.CoKer.CoopnSyntacticSelection
              |
              +--ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection
                    |
                    +--ConForM.CoopnTools.CoKer.CoopnMgr.CoopnSelection
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.awt.datatransfer.Transferable

public class CoopnSelection
extends ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection

Selection of coopn elements.


Constructor Summary
CoopnSelection(CoopnElement element)
          Build a selection of CO-OPN text.
 
Method Summary
 CoopnElement getTransferCoopnElement()
          Get the transfered element as a CoopnElement.
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
          If the data was requested in the "java.lang.String" flavor, return the String representing the selection.
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Returns the array of flavors in which it can provide the data.
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
          Returns whether the requested flavor is supported by this object.
 
Methods inherited from class ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection
getTransferCoopnTextElement
 
Methods inherited from class ConForM.CoopnTools.CoKer.CoopnSyntacticSelection
getTransferCoopnSyntacticElement
 
Methods inherited from class ConForM.CoopnTools.CoKer.CoopnStringSelection
lostOwnership
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoopnSelection

public CoopnSelection(CoopnElement element)
Build a selection of CO-OPN text.
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Description copied from class: CoopnStringSelection
Returns the array of flavors in which it can provide the data.
Overrides:
getTransferDataFlavors in class ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Description copied from class: CoopnStringSelection
Returns whether the requested flavor is supported by this object.
Overrides:
isDataFlavorSupported in class ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection
Following copied from class: ConForM.CoopnTools.CoKer.CoopnStringSelection
Parameters:
flavor - the requested flavor for the data

getTransferCoopnElement

public CoopnElement getTransferCoopnElement()
Get the transfered element as a CoopnElement.

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Description copied from class: CoopnStringSelection
If the data was requested in the "java.lang.String" flavor, return the String representing the selection.
Overrides:
getTransferData in class ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextSelection
Following copied from class: ConForM.CoopnTools.CoKer.CoopnStringSelection
Parameters:
flavor - the requested flavor for the data
Throws:
java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not supported in the "java.lang.String" flavor.