Data container for Clipboard data. It can hold multiple data in several data formats.
Data container for Clipboard data. It can hold multiple data in several data formats.
Example use:
val content = new ClipboardContent()
content.putString("Some text")
content.putHtml("<b>Some</b> text")
Alternative use:
val content = ClipboardContent(
DataFormat.PlainText -> "Some text",
DataFormat.Html -> "<b>Some</b> text"
)
Caution when putting files into the clipboard. The recommended way is to use putFiles
method:
content.putFiles(Seq(new File("one"), new File("two"))) *
When using with DataFormat.Files
you have to use Java List
as a container, which is less convenient:
import scala.collection.JavaConverters._
val content = ClipboardContent(
DataFormat.Files -> Seq(new File("one"), new File("two")).asJava,
)
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/ClipboardContent.html ClipboardContent.
- Value Params
- delegate
A JavaFX ClipboardContent to be wrapped. Its default value is a new JavaFX ClipboardContent.
- Constructor
Creates a new ClipboardContent from a JavaFX one.
- Companion
- object
Value members
Concrete methods
Gets the List of Files from the clipboard which had previously been registered.
Gets the List of Files from the clipboard which had previously been registered.
Gets whether an List of Files (DataFormat.FILES) has been registered on this Clipboard.
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 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 Image (DataFormat.IMAGE) has been registered on this Clipboard.
Gets whether an RTF String (DataFormat.RTF) 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.PLAIN_TEXT) has been registered on this Clipboard.
Gets whether a plain text String (DataFormat.PLAIN_TEXT) has been registered on this Clipboard.
Gets whether a url String (DataFormat.URL) has been registered on this Clipboard.
Gets whether a url String (DataFormat.URL) has been registered on this Clipboard.
Gets the HTML text String from the clipboard which had previously been registered.
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 Image from the clipboard which had previously been registered.
Puts an List of Files onto the Clipboard, based on the file path.
Puts an List of Files onto the Clipboard, based on the file path.
Gets the RTF text String 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.
Gets the plain text String from the clipboard which had previously been registered.
Inherited methods
- Inherited from
- MapOps
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
- Inherited from
- MapOps
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
- Value Params
- ref
Object to be compared.
- Returns
if the other object is equals to this delegate or not.
- Definition Classes
- SFXDelegate -> Any
- Inherited from
- SFXDelegate
- Definition Classes
- MapFactoryDefaults -> IterableOps
- Inherited from
- MapFactoryDefaults
- Inherited from
- IterableOps
- Inherited from
- IterableOps
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOps
- Returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.- Definition Classes
- SFXDelegate -> Any
- Inherited from
- SFXDelegate
- Inherited from
- IterableOps
- Inherited from
- MapOps
- Definition Classes
- MapFactoryDefaults -> IterableOps
- Inherited from
- MapFactoryDefaults
- Inherited from
- IterableOps
Deprecated and Inherited methods
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- Growable
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- Shrinkable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- Iterable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps