scalafx.scene.input
Wraps `javafx.scene.input` package.
Attributes
Members list
Type members
Classlikes
Represents an operating system clipboard, on which data may be placed during, for example, cut, copy, and paste operations.
Represents an operating system clipboard, on which data may be placed during, for example, cut, copy, and paste operations.
To access the general system clipboard, use the following code:
val clipboard = Clipboard.systemClipboard
There is only ever one instance of the system clipboard in the application, so it is perfectly acceptable to stash a reference to it somewhere handy if you so choose.
The Clipboard operates on the concept of having a single conceptual item on the clipboard at any one time -- though it may be placed on the clipboard in different formats.
Example use:
val clipboard = Clipboard.systemClipboard
val content = new ClipboardContent()
content.putString("Some text")
content.putHtml("<b>Some</b> text")
clipboard.content = content
Alternative use:
Clipboard.systemClipboard.content = ClipboardContent(
DataFormat.PlainText -> "Some text",
DataFormat.Html -> "<b>Some</b> text"
)
Caution when putting files into the clipboard. The recommended method is:
val content = new ClipboardContent()
content.putString("Some text")
Wraps a $JFX $URL0 $FC.
Value parameters
- delegate
-
A $JFX $FC to be wrapped. Its default value is a new $JFX $FC.
Attributes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ClipboardContent.type
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.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
- Supertypes
-
trait SFXDelegate[ClipboardContent]trait Shrinkable[DataFormat]trait Clearabletrait Cloneabletrait Equalstrait DataFormat => AnyRefclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ContextMenuEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[ContextMenuEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DataFormat.type
Data format identifier used as means of identifying the data stored on a clipboard/dragboard.
Data format identifier used as means of identifying the data stored on a clipboard/dragboard.
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
- Supertypes
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[DragEvent]class Objecttrait Matchableclass AnyShow all
Object companion for scalafx.scene.input.Dragboard.
Object companion for scalafx.scene.input.Dragboard.
Attributes
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/Clipboard.html Clipboard.
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
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GestureEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[GestureEvent]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InputEvent.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class ContextMenuEventclass DragEventclass GestureEventclass ScrollEventclass SwipeEventclass ZoomEventclass InputMethodEventclass KeyEventclass MouseEventclass MouseDragEventclass RotateEventclass TouchEventShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
InputIncludes.type
Contains implcit methods to convert from `javafx.scene.input` Classes/Traits to their ScalaFX counterparts.
Contains implcit methods to convert from `javafx.scene.input` Classes/Traits to their ScalaFX counterparts.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InputMethodEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[InputMethodEvent]class Objecttrait Matchableclass AnyShow all
Wrapper for javafx.scene.input.InputMethodHighlight
Wrapper for javafx.scene.input.InputMethodHighlight
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
InputMethodHighlight.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[InputMethodHighlight]trait SFXDelegate[InputMethodHighlight]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InputMethodTextRun.type
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
class KeyCombinationtrait SFXDelegate[KeyCharacterCombination]class Objecttrait Matchableclass Any
Wrapper for javafx.scene.input.KeyCode
Wrapper for javafx.scene.input.KeyCode
Attributes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object Aobject Acceptobject Addobject Againobject AllCandidatesobject Alphanumericobject Altobject AltGraphobject Ampersandobject Asteriskobject Atobject Bobject BackQuoteobject BackSlashobject BackSpaceobject Beginobject Braceleftobject Bracerightobject Cobject Cancelobject Capsobject ChannelDownobject ChannelUpobject Circumflexobject Clearobject CloseBracketobject CodeInputobject Colonobject ColoredKey0object ColoredKey1object ColoredKey2object ColoredKey3object Commaobject Commandobject Composeobject ContextMenuobject Controlobject Convertobject Copyobject Cutobject Dobject DeadAbovedotobject DeadAboveringobject DeadAcuteobject DeadBreveobject DeadCaronobject DeadCedillaobject DeadCircumflexobject DeadDiaeresisobject DeadDoubleacuteobject DeadGraveobject DeadIotaobject DeadMacronobject DeadOgonekobject DeadSemivoicedSoundobject DeadTildeobject DeadVoicedSoundobject Decimalobject Deleteobject Digit0object Digit1object Digit2object Digit3object Digit4object Digit5object Digit6object Digit7object Digit8object Digit9object Divideobject Dollarobject Downobject Eobject EjectToggleobject Endobject Enterobject Equalsobject Escapeobject EuroSignobject ExclamationMarkobject Fobject F1object F10object F11object F12object F13object F14object F15object F16object F17object F18object F19object F2object F20object F21object F22object F23object F24object F3object F4object F5object F6object F7object F8object F9object FastFwdobject Finalobject Findobject FullWidthobject Gobject GameAobject GameBobject GameCobject GameDobject Greaterobject Hobject HalfWidthobject Helpobject Hiraganaobject Homeobject Iobject Infoobject InputMethodOnOffobject Insertobject InvertedExclamationMarkobject Jobject JapaneseHiraganaobject JapaneseKatakanaobject JapaneseRomanobject Kobject KPDownobject KPLeftobject KPRightobject KPUpobject Kanaobject KanaLockobject Kanjiobject Katakanaobject Lobject Leftobject LeftParenthesisobject Lessobject Mobject Metaobject Minusobject Modechangeobject Multiplyobject Muteobject Nobject Nonconvertobject NumLockobject NumberSignobject Numpad0object Numpad1object Numpad2object Numpad3object Numpad4object Numpad5object Numpad6object Numpad7object Numpad8object Numpad9object Oobject OpenBracketobject Pobject PageDownobject PageUpobject Pasteobject Pauseobject Periodobject Playobject Plusobject Poundobject Powerobject PreviousCandidateobject Printscreenobject Propsobject Qobject Quoteobject Quotedblobject Robject Recordobject Rewindobject Rightobject RightParenthesisobject RomanCharactersobject Sobject ScrollLockobject Semicolonobject Separatorobject Shiftobject Shortcutobject Slashobject Softkey0object Softkey1object Softkey2object Softkey3object Softkey4object Softkey5object Softkey6object Softkey7object Softkey8object Softkey9object Spaceobject Starobject Stopobject Subtractobject Tobject Tabobject TrackNextobject TrackPrevobject Uobject Undefinedobject Underscoreobject Undoobject Upobject Vobject VolumeDownobject VolumeUpobject Wobject Windowsobject Xobject Yobject ZShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
KeyCodeCombination.type
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
KeyCombination.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class KeyCharacterCombinationclass KeyCodeCombination
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[KeyEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
Wrapper for javafx.scene.input.MouseButton
Wrapper for javafx.scene.input.MouseButton
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
MouseButton.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[MouseButton]trait SFXDelegate[MouseButton]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MouseDragEvent.type
Attributes
- Companion
- object
- Supertypes
-
class MouseEventclass InputEventclass Eventtrait SFXDelegate[MouseDragEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MouseEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[MouseEvent]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class MouseDragEvent
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PickResult.type
A container for the result of a pick event. Wrapper for JavaFX's PickResult.
A container for the result of a pick event. Wrapper for JavaFX's PickResult.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RotateEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[RotateEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ScrollEvent.type
Attributes
- Companion
- object
- Supertypes
-
class GestureEventclass InputEventclass Eventtrait SFXDelegate[ScrollEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SwipeEvent.type
Attributes
- Companion
- object
- Supertypes
-
class GestureEventclass InputEventclass Eventtrait SFXDelegate[SwipeEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TouchEvent.type
Attributes
- Companion
- object
- Supertypes
-
class InputEventclass Eventtrait SFXDelegate[TouchEvent]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TouchPoint.type
Attributes
- Companion
- object
- Supertypes
Wrapper for javafx.scene.input.TransferMode
Wrapper for javafx.scene.input.TransferMode
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
TransferMode.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[TransferMode]trait SFXDelegate[TransferMode]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class GestureEventclass InputEventclass Eventtrait SFXDelegate[ZoomEvent]class Objecttrait Matchableclass AnyShow all