def putClipboardImage(image): content = ClipboardContent() content.putImage(SwingFXUtils.toFXImage(image, null)) Clipboard.getSystemClipboard().setContent(content)
def putClipboardHtmlText(text): content = ClipboardContent() content.putString(text) content.putHtml(text) Clipboard.getSystemClipboard().setContent(content)
def putClipboardFiles(files): content = ClipboardContent() content.putFiles(files) Clipboard.getSystemClipboard().setContent(content)
def GetClipboardImage(): return SwingFXUtils.fromFXImage( Clipboard.getSystemClipboard().getImage() )
def GetClipboardFiles(): if Clipboard.getSystemClipboard().hasFiles(): return Clipboard.getSystemClipboard().getFiles()
def GetClipboardHtmlText(): if Clipboard.getSystemClipboard().hasHtml(): return Clipboard.getSystemClipboard().getHtml()
def GetClipboardText(): if Clipboard.getSystemClipboard().hasString(): return Clipboard.getSystemClipboard().getString()
def ClipboardClear(): Clipboard.getSystemClipboard().clear();