ConForM.CoopnTools.CoKer.ConstraintsMgr
Class ConstraintsSyntacticSelection

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.ConstraintsMgr.ConstraintsStringSelection
        |
        +--ConForM.CoopnTools.CoKer.ConstraintsMgr.ConstraintsSyntacticSelection
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.awt.datatransfer.Transferable
Direct Known Subclasses:
ConstraintsSelection

public class ConstraintsSyntacticSelection
extends ConstraintsStringSelection

Selection of coopn syntactic elements.


Constructor Summary
ConstraintsSyntacticSelection(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.ConstraintsMgr.ConstraintsStringSelection
lostOwnership
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintsSyntacticSelection

public ConstraintsSyntacticSelection(CoopnSyntacticElement element)
Build a selection of CO-OPN syntactic elements.
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Description copied from class: ConstraintsStringSelection
Returns the array of flavors in which it can provide the data.
Overrides:
getTransferDataFlavors in class ConstraintsStringSelection

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Description copied from class: ConstraintsStringSelection
Returns whether the requested flavor is supported by this object.
Overrides:
isDataFlavorSupported in class ConstraintsStringSelection
Following copied from class: ConForM.CoopnTools.CoKer.ConstraintsMgr.ConstraintsStringSelection
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: ConstraintsStringSelection
If the data was requested in the "java.lang.String" flavor, return the String representing the selection.
Overrides:
getTransferData in class ConstraintsStringSelection
Following copied from class: ConForM.CoopnTools.CoKer.ConstraintsMgr.ConstraintsStringSelection
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.