org.jhotdraw.gui.datatransfer
Class ClipboardUtil
- java.lang.Object
-
- org.jhotdraw.gui.datatransfer.ClipboardUtil
-
public class ClipboardUtil extends java.lang.ObjectClipboardUtilprovides 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.ClipboardgetClipboard()Returns the ClipboardService instance.static voidsetClipboard(java.awt.datatransfer.Clipboard instance)Sets the Clipboard singleton used by the JHotDraw framework.
-
-
-
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