Dragboard

scalafx.scene.input.Dragboard
See theDragboard companion object
class Dragboard(val delegate: Dragboard) extends Clipboard, SFXDelegate[Dragboard]

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

Value parameters

delegate

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

Attributes

Constructor

Creates a new Clipboard from a JavaFX one.

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

Members list

Value members

Concrete methods

The image used as a drag view.

The image used as a drag view.

Attributes

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

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

Attributes

def dragViewOffsetX_=(offsetX: Double): Unit

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

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

Attributes

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.

Attributes

def transferModes: Set[TransferMode]

Transport modes supported by source of this drag operation.

Transport modes supported by source of this drag operation.

Attributes

Inherited methods

def clear(): Unit

Clears the clipboard of any and all content.

Clears the clipboard of any and all content.

Attributes

Inherited from:
Clipboard

Return a copy of the clipboard content.

Return a copy of the clipboard content.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

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

Attributes

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.

Attributes

Inherited from:
Clipboard

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

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Clipboard

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.

Attributes

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

Attributes

Inherited from:
Clipboard
override def hashCode: Int

Attributes

Returns

The delegate hashcode

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

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Inherited from:
Clipboard
override def toString: String

Attributes

Returns

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

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

Attributes

Inherited from:
Clipboard

Concrete fields

override val delegate: Dragboard

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes