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 the native clipboard, such as after executing a native Java action that uses the system clipboard, then that test must use some other mechanism to know that the native action was executed. This is due to the fact that the system clipboard is potentially used by multiple Java test processes at once.

    • 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