com.sun.xml.registry.client.browser
Class RegistryObjectsTransferable

java.lang.Object
  extended bycom.jgraph.plaf.basic.BasicTransferable
      extended bycom.sun.xml.registry.client.browser.RegistryObjectsTransferable
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.io.Serializable, java.awt.datatransfer.Transferable, javax.swing.plaf.UIResource

public class RegistryObjectsTransferable
extends com.jgraph.plaf.basic.BasicTransferable
implements java.io.Serializable, java.awt.datatransfer.ClipboardOwner

An object that represents the clipboard contents for a ArrayList of RegistryObjects selection. The object has two representations:

1. Richer: Object representtaion 2. Plain: plain text representation.

Author:
Farrukh S. Najmi
See Also:
Serialized Form

Field Summary
static java.awt.datatransfer.DataFlavor dataFlavor
          Local Machine Reference Data Flavor.
 
Constructor Summary
RegistryObjectsTransferable(java.util.ArrayList registryObjects)
          Constructs a new transferable selection for cells, csand attrMap.
 
Method Summary
 java.lang.String getPlainData()
          Fetch the data in a text/plain format.
 java.util.ArrayList getRegistryObjects()
          Returns the registryObjects that represent the selection.
 java.lang.Object getRicherData(java.awt.datatransfer.DataFlavor flavor)
          Fetch the data in a jvm-localreference format.
 java.awt.datatransfer.DataFlavor[] getRicherFlavors()
          Returns the jvm-localreference flavors of the transferable.
 boolean isPlainSupported()
          Returns true if the transferable support a text/plain format.
 void lostOwnership(java.awt.datatransfer.Clipboard clip, java.awt.datatransfer.Transferable contents)
           
 
Methods inherited from class com.jgraph.plaf.basic.BasicTransferable
getHTMLData, getTransferData, getTransferDataFlavors, isDataFlavorSupported, isHTMLFlavor, isHTMLSupported, isPlainFlavor, isRicherFlavor, isStringFlavor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataFlavor

public static java.awt.datatransfer.DataFlavor dataFlavor
Local Machine Reference Data Flavor.

Constructor Detail

RegistryObjectsTransferable

public RegistryObjectsTransferable(java.util.ArrayList registryObjects)
Constructs a new transferable selection for cells, csand attrMap.

Method Detail

getRegistryObjects

public java.util.ArrayList getRegistryObjects()
Returns the registryObjects that represent the selection.


lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clip,
                          java.awt.datatransfer.Transferable contents)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

getRicherFlavors

public java.awt.datatransfer.DataFlavor[] getRicherFlavors()
Returns the jvm-localreference flavors of the transferable.


getRicherData

public java.lang.Object getRicherData(java.awt.datatransfer.DataFlavor flavor)
                               throws java.awt.datatransfer.UnsupportedFlavorException
Fetch the data in a jvm-localreference format.

Throws:
java.awt.datatransfer.UnsupportedFlavorException

isPlainSupported

public boolean isPlainSupported()
Returns true if the transferable support a text/plain format.


getPlainData

public java.lang.String getPlainData()
Fetch the data in a text/plain format.



Copyright © 2001-2004 OASIS. All Rights Reserved.