class Dragboard extends Clipboard with SFXDelegate[javafx.scene.input.Dragboard]
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/Dragboard.html Dragboard.
- Source
- Dragboard.scala
- Alphabetic
- By Inheritance
- Dragboard
- Clipboard
- SFXDelegate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Dragboard(delegate: javafx.scene.input.Dragboard)
Creates a new Dragboard from a JavaFX one.
Creates a new Dragboard from a JavaFX one.
- delegate
A JavaFX Dragboard to be wrapped. Its default value is a new JavaFX Dragboard.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
Clears the clipboard of any and all content.
Clears the clipboard of any and all content.
- Definition Classes
- Clipboard
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def content: ClipboardContent
Return a
of the clipboard content.copy
Return a
of the clipboard content.copy
- Definition Classes
- Clipboard
- def content(dataFormat: DataFormat): AnyRef
Returns the content stored in this clipboard of the given type, or null if there is no content with this type.
Returns the content stored in this clipboard of the given type, or null if there is no content with this type.
- Definition Classes
- Clipboard
- def contentTypes: Set[javafx.scene.input.DataFormat]
Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard.
Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard.
- Definition Classes
- Clipboard
- def content_=(content: ClipboardContent): Unit
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.
- Definition Classes
- Clipboard
- Exceptions thrown
java.lang.NullPointerException
- if null data reference is passed for any format
- val delegate: javafx.scene.input.Dragboard
JavaFX object to be wrapped.
JavaFX object to be wrapped.
- Definition Classes
- Dragboard → Clipboard → SFXDelegate
- def dragView: Image
The image used as a drag view.
- def dragViewOffsetX: Double
The x position of the cursor of the drag view image.
- def dragViewOffsetX_=(offsetX: Double): Unit
- def dragViewOffsetY: Double
The y position of the cursor of the drag view image.
- def dragViewOffsetY_=(offsetY: Double): Unit
- def dragView_=(image: Image, offsetX: Double, offsetY: Double): Unit
Sets the visual representation of data being transfered in a drag and drop gesture.
- def dragView_=(image: Image): Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(ref: Any): Boolean
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
- ref
Object to be compared.
- returns
if the other object is equals to this delegate or not.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def files: Seq[File]
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.
- Definition Classes
- Clipboard
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hasContent(dataFormat: DataFormat): Boolean
Tests whether there is any content on this clipboard of the given DataFormat type.
Tests whether there is any content on this clipboard of the given DataFormat type.
- Definition Classes
- Clipboard
- def hasFiles: Boolean
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.
- Definition Classes
- Clipboard
- def hasHtml: Boolean
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.
- Definition Classes
- Clipboard
- def hasImage: Boolean
Gets whether an Image (DataFormat.Image) has been registered on this Clipboard.
Gets whether an Image (DataFormat.Image) has been registered on this Clipboard.
- Definition Classes
- Clipboard
- def hasRtf: Boolean
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.
- Definition Classes
- Clipboard
- def hasString: Boolean
Gets whether a plain text String (DataFormat.PlainText) has been registered on this Clipboard.
Gets whether a plain text String (DataFormat.PlainText) has been registered on this Clipboard.
- Definition Classes
- Clipboard
- def hasUrl: Boolean
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.
- Definition Classes
- Clipboard
- def hashCode(): Int
- returns
The delegate hashcode
- Definition Classes
- SFXDelegate → AnyRef → Any
- def html: String
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.
- Definition Classes
- Clipboard
- def image: Image
Gets the Image from the clipboard which had previously been registered.
Gets the Image from the clipboard which had previously been registered.
- Definition Classes
- Clipboard
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def rtf: String
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.
- Definition Classes
- Clipboard
- def string: String
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.
- Definition Classes
- Clipboard
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def transferModes: Set[javafx.scene.input.TransferMode]
Transport modes supported by source of this drag operation.
- def url: String
Gets the URL String from the clipboard which had previously been registered.
Gets the URL String from the clipboard which had previously been registered.
- Definition Classes
- Clipboard
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp3
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.