com.apelon.beans.dts.plugin.transferable
Class SynonymTransferable

java.lang.Object
  extended by com.apelon.beans.dts.plugin.transferable.AbstractTransferable
      extended by com.apelon.beans.dts.plugin.transferable.SynonymTransferable
All Implemented Interfaces:
Transferable

public class SynonymTransferable
extends AbstractTransferable

For transfer of transfer Synonym through Drag and Drop.

It supports these data flavors:

Copyright: Copyright (c) 2003

Company: Apelon

Version:
1.0
Author:
Apelon

Constructor Summary
SynonymTransferable(Synonym synonym)
          Initializes with given Synonym.
 
Method Summary
static DataFlavor getDataFlavor()
          Deprecated. Use DTSDataFlavor.synonymFlavor instead
 Object getTransferData(DataFlavor dataflavor)
          Returns the data for a given DataFlavor.
 
Methods inherited from class com.apelon.beans.dts.plugin.transferable.AbstractTransferable
createConstant, getTransferDataFlavors, isDataFlavorSupported, setTransferDataFlavors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynonymTransferable

public SynonymTransferable(Synonym synonym)
Initializes with given Synonym. The supported DataFlavors are set.

Method Detail

getDataFlavor

public static DataFlavor getDataFlavor()
Deprecated. Use DTSDataFlavor.synonymFlavor instead

Returns DataFlavor of this Transferable

Returns:
java.awt.datatransfer.DataFlavor

getTransferData

public Object getTransferData(DataFlavor dataflavor)
Returns the data for a given DataFlavor.

For Synonym Data Flavor, the synonym (Synonym)of this Transferable is returned.

For Term Data Flavor, the term from the synonym is returned.

For String Data Flavor, the name of the term from the synonym is retuned.

For other Data Flavor, the returned value is null

Parameters:
dataflavor - java.awt.datatransfer.DataFlavor
Returns:
java.lang.Object


Copyright © 2011. All Rights Reserved.