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.jdk.CollectionConverters.*
val content = ClipboardContent(
DataFormat.Files -> Seq(new File("one"), new File("two")).asJava,
)
Wraps a $JFX $URL0 $FC.
Value parameters
- delegate
-
A $JFX $FC to be wrapped. Its default value is a new $JFX $FC.
Attributes
- Constructor
-
Creates a new $FC from a $JFX one.
- Companion
- object
- Graph
-
- Supertypes
-
trait SFXDelegate[ClipboardContent]trait Shrinkable[DataFormat]trait Clearabletrait Cloneabletrait Equalstrait DataFormat => AnyRefclass Objecttrait Matchableclass AnyShow all
Members list
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.
Attributes
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.
Attributes
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.
Attributes
Gets whether an Image (DataFormat.IMAGE) has been registered on this Clipboard.
Gets whether an Image (DataFormat.IMAGE) has been registered on this Clipboard.
Attributes
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.
Attributes
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.
Attributes
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.
Attributes
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.
Attributes
Gets the Image from the clipboard which had previously been registered.
Gets the Image from the clipboard which had previously been registered.
Attributes
Puts an List of Files onto the Clipboard.
Puts an List of Files onto the Clipboard.
Attributes
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.
Attributes
Puts an HTML text String onto the Clipboard.
Puts an HTML text String onto the Clipboard.
Attributes
Puts an Image onto the Clipboard.
Puts an Image onto the Clipboard.
Attributes
Puts an RTF text String onto the Clipboard.
Puts an RTF text String onto the Clipboard.
Attributes
Puts a plain text String onto the Clipboard.
Puts a plain text String onto the Clipboard.
Attributes
Puts a URL String onto the Clipboard.
Puts a URL String onto the Clipboard.
Attributes
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.
Attributes
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.
Attributes
Attributes
- Definition Classes
-
JMapWrapperLike
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Growable
Attributes
- Definition Classes
-
JMapWrapperLike -> Growable
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- MapOps
Create a copy of the receiver object.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
Value parameters
- ref
-
Object to be compared.
Attributes
- Returns
-
if the other object is equals to this delegate or not.
- Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns
-
The delegate hashcode
- Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
-
JMapWrapperLike -> MapOps
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
-
JMapWrapperLike -> MapOps
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- Cloneable
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
JMapWrapperLike -> IterableOnceOps
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- Shrinkable
Attributes
- Definition Classes
-
JMapWrapperLike -> Shrinkable
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Returns
-
Returns the original delegate's
toString()
adding a[SFX]
prefix. - Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
JMapWrapperLike -> MapOps
- Inherited from:
- JMapWrapperLike (hidden)
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Map
Attributes
- Inherited from:
- Map
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ with an explicit collection argument instead of + with varargs - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Map or fall back to Map.concat. - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use -- or removeAll on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use - or remove on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Map. - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.3]
Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Shrinkable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap). - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap). - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use filterInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use mapValuesInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use m.clone().addOne((k,v)) instead of m.updated(k, v) - Inherited from:
- MapOps
Concrete fields
JavaFX object to be wrapped.
JavaFX object to be wrapped.