Java java.awt.datatransfer Clipboard fields, constructors, methods, implement or subclass

Example usage for Java java.awt.datatransfer Clipboard fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.datatransfer Clipboard.

The text is from its open source code.

Constructor

Clipboard(String name)
Creates a clipboard object.

Method

voidaddFlavorListener(FlavorListener listener)
Registers the specified FlavorListener to receive FlavorEvent s from this clipboard.
DataFlavor[]getAvailableDataFlavors()
Returns an array of DataFlavor s in which the current contents of this clipboard can be provided.
TransferablegetContents(Object requestor)
Returns a transferable object representing the current contents of the clipboard.
ObjectgetData(DataFlavor flavor)
Returns an object representing the current contents of this clipboard in the specified DataFlavor .
StringgetName()
Returns the name of this clipboard object.
booleanisDataFlavorAvailable(DataFlavor flavor)
Returns whether or not the current contents of this clipboard can be provided in the specified DataFlavor .
voidsetContents(Transferable contents, ClipboardOwner owner)
Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents.