Class Clipboard


  • public final class Clipboard
    extends java.lang.Object
    Singleton class providing a means of sharing data between components and applications.
    • 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 be null).
        Throws:
        java.lang.IllegalArgumentException - if the content is null.