Example usage for Java java.awt.datatransfer Clipboard fields, constructors, methods, implement or subclass
The text is from its open source code.
Clipboard(String name) Creates a clipboard object. |
void | addFlavorListener(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. |
Transferable | getContents(Object requestor) Returns a transferable object representing the current contents of the clipboard. |
Object | getData(DataFlavor flavor) Returns an object representing the current contents of this clipboard in the specified DataFlavor . |
String | getName() Returns the name of this clipboard object. |
boolean | isDataFlavorAvailable(DataFlavor flavor) Returns whether or not the current contents of this clipboard can be provided in the specified DataFlavor . |
void | setContents(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. |