Documentation of 'org.jhotdraw.gui.datatransfer.ClipboardUtil' Java class
ClipboardUtil
org.jhotdraw.gui.datatransfer

Class ClipboardUtil



  • public class ClipboardUtil
    extends java.lang.Object
    ClipboardUtil provides utility methods for the Java Clipboard API.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ClipboardUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.datatransfer.Clipboard getClipboard()
      Returns the ClipboardService instance.
      static void setClipboard(java.awt.datatransfer.Clipboard instance)
      Sets the Clipboard singleton used by the JHotDraw framework.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClipboardUtil

        public ClipboardUtil()
    • Method Detail

      • getClipboard

        public static java.awt.datatransfer.Clipboard getClipboard()
        Returns the ClipboardService instance. If none is set, creates a new one which tries to access the system clipboard. If this fails, an instance with a JVM local clipboard is created.
        Returns:
        system clipboard or a proxy.
      • setClipboard

        public static void setClipboard(java.awt.datatransfer.Clipboard instance)
        Sets the Clipboard singleton used by the JHotDraw framework.

        If you set this null, the next call to getClipboard will create a new singleton.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.