Package org.apache.pivot.wtk
Class Clipboard
- java.lang.Object
-
- org.apache.pivot.wtk.Clipboard
-
public final class Clipboard extends java.lang.Object
Singleton class providing a means of sharing data between components and applications.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Manifest
getContent()
Retrieves the contents of the clipboard.static void
setContent(LocalManifest newContent)
Places content on the clipboard.static void
setContent(LocalManifest newContent, ClipboardContentListener contentListener)
Places content on the clipboard.
-
-
-
Method Detail
-
getContent
public static Manifest getContent()
Retrieves the contents of the clipboard.- Returns:
- The current clipboard content manifest.
-
setContent
public static void setContent(LocalManifest newContent)
Places content on the clipboard.- Parameters:
newContent
- The new content manifest to place on the clipboard.
-
setContent
public static void setContent(LocalManifest newContent, ClipboardContentListener contentListener)
Places content on the clipboard.- Parameters:
newContent
- The new content manifest for the clipboard.contentListener
- A listener for changes in the content (which can benull
).- Throws:
java.lang.IllegalArgumentException
- if the content isnull
.
-
-