Clears the clipboard of any and all content.
Return a
of the clipboard content.copy
Returns the content stored in this clipboard of the given type, or null if there is no content with this type.
Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard.
Puts content onto the clipboard.
Puts content onto the clipboard.
This call will always result in clearing all previous content from the clipboard, and replacing it with whatever content is specified in the supplied ClipboardContent map.
java.lang.NullPointerException
- if null data reference is passed for any format
A JavaFX Clipboard to be wrapped.
A JavaFX Clipboard to be wrapped. Its default value is a new JavaFX Clipboard.
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
Object to be compared.
if the other object is equals to this delegate or not.
Gets the list of files from the clipboard which had previously been registered.
Tests whether there is any content on this clipboard of the given DataFormat type.
Gets whether an list of files (DataFormat.Files) has been registered on this Clipboard.
Gets whether an HTML text String (DataFormat.Html) has been registered on this Clipboard.
Gets whether an Image (DataFormat.Image) has been registered on this Clipboard.
Gets whether an RTF String (DataFormat.Rtf) has been registered on this Clipboard.
Gets whether a plain text String (DataFormat.PlainText) has been registered on this Clipboard.
Gets whether a url String (DataFormat.Url) has been registered on this Clipboard.
The delegate hashcode
Gets the HTML text String from the clipboard which had previously been registered.
Gets the Image from the clipboard which had previously been registered.
Gets the RTF text String from the clipboard which had previously been registered.
Gets the plain text String from the clipboard which had previously been registered.
Returns the original delegate's toString()
adding a [SFX]
prefix.
Gets the URL String from the clipboard which had previously been registered.
Represents an operating system clipboard, on which data may be placed during, for example, cut, copy, and paste operations.
To access the general system clipboard, use the following code:
val clipboard = Clipboard.systemClipboard
There is only ever one instance of the system clipboard in the application, so it is perfectly acceptable to stash a reference to it somewhere handy if you so choose.
The Clipboard operates on the concept of having a single conceptual item on the clipboard at any one time -- though it may be placed on the clipboard in different formats.
Example use:
Alternative use:
Caution when putting files into the clipboard. The recommended method is:
Wraps a JavaFX Clipboard.