|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.util.ClipBoardAccess
public final class ClipBoardAccess
Little helper class to copy some text (e.g. an error message or exception ;-) to the system's clipboard. Copied with some modifications from: http://www.javapractices.com/topic/TopicAction.do?Id=82
Constructor Summary | |
---|---|
ClipBoardAccess()
|
Method Summary | |
---|---|
java.lang.String |
getClipboardContents()
Get the String residing on the clipboard. |
void |
lostOwnership(java.awt.datatransfer.Clipboard aClipboard,
java.awt.datatransfer.Transferable aContents)
Empty implementation of the ClipboardOwner interface. |
static void |
main(java.lang.String... aArguments)
|
void |
setClipboardContents(java.lang.String text)
Place a String on the clipboard, and make this class the owner of the Clipboard's contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClipBoardAccess()
Method Detail |
---|
public static void main(java.lang.String... aArguments)
public void lostOwnership(java.awt.datatransfer.Clipboard aClipboard, java.awt.datatransfer.Transferable aContents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
public void setClipboardContents(java.lang.String text)
public java.lang.String getClipboardContents()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |