ConForM.CoopnTools.CoKer
Class CoopnSyntacticSelection

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

public class CoopnSyntacticSelection
extends CoopnStringSelection

Selection of coopn syntactic elements.


Constructor Summary
CoopnSyntacticSelection(CoopnSyntacticElement element)
          Build a selection of CO-OPN syntactic elements.
 
Method Summary
 CoopnSyntacticElement getTransferCoopnSyntacticElement()
          Get the transfered element as a CoopnTextElement.
 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.CoopnStringSelection
lostOwnership
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoopnSyntacticSelection

public CoopnSyntacticSelection(CoopnSyntacticElement element)
Build a selection of CO-OPN syntactic elements.
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 CoopnStringSelection

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 CoopnStringSelection
Following copied from class: ConForM.CoopnTools.CoKer.CoopnStringSelection
Parameters:
flavor - the requested flavor for the data

getTransferCoopnSyntacticElement

public CoopnSyntacticElement getTransferCoopnSyntacticElement()
Get the transfered element as a CoopnTextElement.

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 CoopnStringSelection
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.