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
-
object SelectedConverted.typeobject SelectedRaw.typeobject UnselectedConverted.typeobject UnselectedRaw.type
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 A.typeobject Accept.typeobject Add.typeobject Again.typeobject AllCandidates.typeobject Alphanumeric.typeobject Alt.typeobject AltGraph.typeobject Ampersand.typeobject Asterisk.typeobject At.typeobject B.typeobject BackQuote.typeobject BackSlash.typeobject BackSpace.typeobject Begin.typeobject Braceleft.typeobject Braceright.typeobject C.typeobject Cancel.typeobject Caps.typeobject ChannelDown.typeobject ChannelUp.typeobject Circumflex.typeobject Clear.typeobject CloseBracket.typeobject CodeInput.typeobject Colon.typeobject ColoredKey0.typeobject ColoredKey1.typeobject ColoredKey2.typeobject ColoredKey3.typeobject Comma.typeobject Command.typeobject Compose.typeobject ContextMenu.typeobject Control.typeobject Convert.typeobject Copy.typeobject Cut.typeobject D.typeobject DeadAbovedot.typeobject DeadAbovering.typeobject DeadAcute.typeobject DeadBreve.typeobject DeadCaron.typeobject DeadCedilla.typeobject DeadCircumflex.typeobject DeadDiaeresis.typeobject DeadDoubleacute.typeobject DeadGrave.typeobject DeadIota.typeobject DeadMacron.typeobject DeadOgonek.typeobject DeadSemivoicedSound.typeobject DeadTilde.typeobject DeadVoicedSound.typeobject Decimal.typeobject Delete.typeobject Digit0.typeobject Digit1.typeobject Digit2.typeobject Digit3.typeobject Digit4.typeobject Digit5.typeobject Digit6.typeobject Digit7.typeobject Digit8.typeobject Digit9.typeobject Divide.typeobject Dollar.typeobject Down.typeobject E.typeobject EjectToggle.typeobject End.typeobject Enter.typeobject Equals.typeobject Escape.typeobject EuroSign.typeobject ExclamationMark.typeobject F.typeobject F1.typeobject F10.typeobject F11.typeobject F12.typeobject F13.typeobject F14.typeobject F15.typeobject F16.typeobject F17.typeobject F18.typeobject F19.typeobject F2.typeobject F20.typeobject F21.typeobject F22.typeobject F23.typeobject F24.typeobject F3.typeobject F4.typeobject F5.typeobject F6.typeobject F7.typeobject F8.typeobject F9.typeobject FastFwd.typeobject Final.typeobject Find.typeobject FullWidth.typeobject G.typeobject GameA.typeobject GameB.typeobject GameC.typeobject GameD.typeobject Greater.typeobject H.typeobject HalfWidth.typeobject Help.typeobject Hiragana.typeobject Home.typeobject I.typeobject Info.typeobject InputMethodOnOff.typeobject Insert.typeobject InvertedExclamationMark.typeobject J.typeobject JapaneseHiragana.typeobject JapaneseKatakana.typeobject JapaneseRoman.typeobject K.typeobject KPDown.typeobject KPLeft.typeobject KPRight.typeobject KPUp.typeobject Kana.typeobject KanaLock.typeobject Kanji.typeobject Katakana.typeobject L.typeobject Left.typeobject LeftParenthesis.typeobject Less.typeobject M.typeobject Meta.typeobject Minus.typeobject Modechange.typeobject Multiply.typeobject Mute.typeobject N.typeobject Nonconvert.typeobject NumLock.typeobject NumberSign.typeobject Numpad0.typeobject Numpad1.typeobject Numpad2.typeobject Numpad3.typeobject Numpad4.typeobject Numpad5.typeobject Numpad6.typeobject Numpad7.typeobject Numpad8.typeobject Numpad9.typeobject O.typeobject OpenBracket.typeobject P.typeobject PageDown.typeobject PageUp.typeobject Paste.typeobject Pause.typeobject Period.typeobject Play.typeobject Plus.typeobject Pound.typeobject Power.typeobject PreviousCandidate.typeobject Printscreen.typeobject Props.typeobject Q.typeobject Quote.typeobject Quotedbl.typeobject R.typeobject Record.typeobject Rewind.typeobject Right.typeobject RightParenthesis.typeobject RomanCharacters.typeobject S.typeobject ScrollLock.typeobject Semicolon.typeobject Separator.typeobject Shift.typeobject Shortcut.typeobject Slash.typeobject Softkey0.typeobject Softkey1.typeobject Softkey2.typeobject Softkey3.typeobject Softkey4.typeobject Softkey5.typeobject Softkey6.typeobject Softkey7.typeobject Softkey8.typeobject Softkey9.typeobject Space.typeobject Star.typeobject Stop.typeobject Subtract.typeobject T.typeobject Tab.typeobject TrackNext.typeobject TrackPrev.typeobject U.typeobject Undefined.typeobject Underscore.typeobject Undo.typeobject Up.typeobject V.typeobject VolumeDown.typeobject VolumeUp.typeobject W.typeobject Windows.typeobject X.typeobject Y.typeobject Z.typeShow 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