setContents
setContents: (Clipboard, StringSelection, nil) -> ()Put contents's text on the clipboard. owner is never told it lost ownership.
Toolkit.getDefaultToolkit():getSystemClipboard()| Method | Returns | Description |
|---|---|---|
setContents(StringSelection, nil) | () | Put contents's text on the clipboard. owner is never told it lost ownership. |
getData(DataFlavor) | string | The clipboard's text for flavor (DataFlavor.stringFlavor); no text is UnsupportedFlavorException. Any plugin reads it at any time. |
isDataFlavorAvailable(DataFlavor) | boolean | Whether the clipboard holds text. |
getContents(any) | StringSelection? | The clipboard's text as a StringSelection, or nil when it holds none. Any plugin reads it at any time. |
| Method | Returns | Description |
|---|---|---|
Toolkit.getSystemClipboard | Clipboard | The system clipboard. |
setContentssetContents: (Clipboard, StringSelection, nil) -> ()Put contents's text on the clipboard. owner is never told it lost ownership.
getDatagetData: (Clipboard, DataFlavor) -> stringThe clipboard's text for flavor (DataFlavor.stringFlavor); no text is UnsupportedFlavorException. Any plugin reads it at any time.
isDataFlavorAvailableisDataFlavorAvailable: (Clipboard, DataFlavor) -> booleanWhether the clipboard holds text.
getContentsgetContents: (Clipboard, any) -> StringSelection?The clipboard's text as a StringSelection, or nil when it holds none. Any plugin reads it at any time.