Package docking.dnd

Class GClipboard


  • public class GClipboard
    extends java.lang.Object
    Provides a place for clients to retrieve the Clipboard they should be using. This class provides a level of indirection that allows us to inject clipboards as needed.

    Note: if a test needs to check the contents of a native Java action, which will use the system clipboard, then that cannot rely on the contents of the system clipboard. That test will have to use some other mechanism to know that the native action was executed.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.datatransfer.Clipboard getSystemClipboard()
      Returns the clipboard that should be used by the current JVM
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSystemClipboard

        public static java.awt.datatransfer.Clipboard getSystemClipboard()
        Returns the clipboard that should be used by the current JVM
        Returns:
        the clipboard