public class ClipboardMonitor
extends java.lang.Object
| Constructor and Description |
|---|
ClipboardMonitor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClipboardListener(IClipboardListener aIClipboardListener)
Add a clipboard listener (i.e., subscribe).
|
static java.awt.datatransfer.Transferable |
getContents()
Get the contents of the system clipboard.
|
static java.lang.String |
getContentsString()
Get the contents of the system clipboard as a String.
|
static boolean |
isStringFlavor()
Determine whether String data exists in system clipboard.
|
static void |
removeClipboardListener(IClipboardListener aIClipboardListener)
Remove clipboard listener (i.e., un-subscribe).
|
static void |
setContents(java.lang.String astrText)
Set the contents of the system clipboard and notify listeners that contents
have changed.
|
static void |
setContents(java.awt.datatransfer.Transferable aTransferable)
Set the contents of the system clipboard and notify listeners that contents
have changed.
|
static void |
start()
Start monitoring system clipboard changes.
|
static void |
stop()
Stop monitoring system clipboard changes.
|
public static void addClipboardListener(IClipboardListener aIClipboardListener)
aIClipboardListener - Clipboard listener instance to add to subscription list.public static java.awt.datatransfer.Transferable getContents()
null.public static java.lang.String getContentsString()
null.public static boolean isStringFlavor()
true if system clipboard contains string data.public static void setContents(java.awt.datatransfer.Transferable aTransferable)
aTransferable - Transferable containing contents.public static void setContents(java.lang.String astrText)
astrText - String (automatically creates StringSelection).public static void removeClipboardListener(IClipboardListener aIClipboardListener)
aIClipboardListener - Clipboard listener instance to remove from subscription list.public static void start()
public static void stop()
Copyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.