Dragboard

class Dragboard(val delegate: Dragboard) extends Clipboard with SFXDelegate[Dragboard]

Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/Dragboard.html Dragboard.

Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/Dragboard.html Dragboard.

Value Params
delegate

A JavaFX Dragboard to be wrapped. Its default value is a new JavaFX Dragboard.

Constructor

Creates a new Dragboard from a JavaFX one.

Companion
object
class Clipboard
trait SFXDelegate[Dragboard]
class Object
trait Matchable
class Any

Value members

Concrete methods

The image used as a drag view.

The image used as a drag view.

def dragViewOffsetX: Double

The x position of the cursor of the drag view image.

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.

The y position of the cursor of the drag view image.

def dragViewOffsetY_=(offsetY: Double): Unit
def dragView_=(image: Image): Unit
def dragView_=(image: Image, offsetX: Double, offsetY: Double): Unit

Sets the visual representation of data being transfered in a drag and drop gesture.

Sets the visual representation of data being transfered in a drag and drop gesture.

def transferModes: Set[TransferMode]

Transport modes supported by source of this drag operation.

Transport modes supported by source of this drag operation.

Inherited methods

def clear(): Unit

Clears the clipboard of any and all content.

Clears the clipboard of any and all content.

Inherited from
Clipboard

Return a copy of the clipboard content.

Return a copy of the clipboard content.

Inherited from
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.

Inherited from
Clipboard
def contentTypes: Set[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.

Inherited from
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.

Throws
java.lang.NullPointerException
  • if null data reference is passed for any format
Inherited from
Clipboard
override def equals(ref: Any): Boolean

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
Inherited from
SFXDelegate
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.

Inherited from
Clipboard
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.

Inherited from
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.

Inherited from
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.

Inherited from
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.

Inherited from
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.

Inherited from
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.

Inherited from
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.

Inherited from
Clipboard
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
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.

Inherited from
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.

Inherited from
Clipboard
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.

Inherited from
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.

Inherited from
Clipboard
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate
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.

Inherited from
Clipboard

Concrete fields

override val delegate: Dragboard