com.mindbright.terminal
public class GlobalClipboard extends java.lang.Object implements TerminalClipboardHandler
Modifier and Type | Method and Description |
---|---|
void |
addMenuHandler(TerminalMenuHandler menuHandler) |
void |
clearSelection()
Clear the clipboard contents.
|
static GlobalClipboard |
getClipboardHandler() |
static GlobalClipboard |
getClipboardHandler(TerminalMenuHandler menuHandler) |
java.lang.String |
getSelection()
Get the current contents of the clipboard
|
void |
removeMenuHandler(TerminalMenuHandler menuHandler) |
void |
setSelection(java.lang.String selection)
Set the content of the clipboard to the specified string.
|
public static GlobalClipboard getClipboardHandler()
public static GlobalClipboard getClipboardHandler(TerminalMenuHandler menuHandler)
public void addMenuHandler(TerminalMenuHandler menuHandler)
public void removeMenuHandler(TerminalMenuHandler menuHandler)
public void setSelection(java.lang.String selection)
TerminalClipboardHandler
setSelection
in interface TerminalClipboardHandler
selection
- new contents of the clipboard.public java.lang.String getSelection()
TerminalClipboardHandler
getSelection
in interface TerminalClipboardHandler
public void clearSelection()
TerminalClipboardHandler
clearSelection
in interface TerminalClipboardHandler