Game Control Plus
1.2.2
|
Public Member Functions | |
void | lostOwnership (Clipboard clipboard, Transferable contents) |
Static Public Member Functions | |
static boolean | copy (String chars) |
static String | paste () |
Private Member Functions | |
MClip () | |
void | makeClipboardObject () |
boolean | copyString (String chars) |
String | pasteString () |
Private Attributes | |
Clipboard | clipboard = null |
Static Private Attributes | |
static MClip | gclip = null |
Clipboard functionaliy for plain text
This provides clipboard functionality for text and is currently only used by the GTextField and GTextArea classes.
|
private |
Ctor is private so clipboard is only created when a copy or paste is attempted and one does not exist already.
|
static |
Copy a string to the clipboard
chars |
|
private |
Copy a string to the clipboard. If the Clipboard has not been created then create it.
void org.gamecontrolplus.gui.MClip.lostOwnership | ( | Clipboard | clipboard, |
Transferable | contents | ||
) |
Reqd by ClipboardOwner interface
|
private |
If security permits use the system clipboard otherwise create our own application clipboard.
|
static |
Get a string from the clipboard
|
private |
Gets a string from the clipboard. If there is no Clipboard then create it.
|
private |
Class attribute to reference the programs clipboard
|
staticprivate |
Static reference to enforce singleton pattern