scalafx.stage

Type members

Classlikes

Companion
class
class DirectoryChooser(val delegate: DirectoryChooser) extends SFXDelegate[DirectoryChooser]
Companion
object
object FileChooser
Companion
class
class FileChooser(val delegate: FileChooser) extends SFXDelegate[FileChooser]

Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.

Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.

Example:

import scalafx.Includes._
import scalafx.stage.FileChooser
import scalafx.stage.FileChooser.ExtensionFilter

...

val fileChooser = new FileChooser {
title = "Open Resource File"
extensionFilters ++= Seq(
  new ExtensionFilter("Text Files", "*.txt"),
  new ExtensionFilter("Image Files", Seq("*.png", "*.jpg", "*.gif")),
  new ExtensionFilter("Audio Files", Seq("*.wav", "*.mp3", "*.aac")),
  new ExtensionFilter("All Files", "*.*")
)
}
val selectedFile = fileChooser.showOpenDialog(stage)
if (selectedFile != null) {
stage.display(selectedFile);
}
Companion
object
object Modality extends SFXEnumDelegateCompanion[Modality, Modality]
Companion
class
sealed abstract class Modality(val delegate: Modality) extends SFXEnumDelegate[Modality]
object Popup
Companion
class
class Popup(val delegate: Popup) extends PopupWindow with SFXDelegate[Popup]
Companion
object
object PopupWindow
Companion
class
abstract class PopupWindow(val delegate: PopupWindow) extends Window with SFXDelegate[PopupWindow]
Companion
object
object Screen
Companion
class
class Screen(val delegate: Screen) extends SFXDelegate[Screen]
Companion
object
object Stage
Companion
class
class Stage(val delegate: Stage) extends Window with SFXDelegate[Stage]

The primary stage for your application has to be created by wrapping the JFXApp.STAGE object.

The primary stage for your application has to be created by wrapping the JFXApp.STAGE object.

stage = new JFXApp.PrimaryStage {
// your definitions
}

Any further stage would be simply instantiated by the no-arg constructor.

Companion
object
Companion
class

Contains implcit methods to convert from `javafx.stage` Classes/Traits to their ScalaFX counterparts.

Contains implcit methods to convert from `javafx.stage` Classes/Traits to their ScalaFX counterparts.

Companion
object
object StageStyle extends SFXEnumDelegateCompanion[StageStyle, StageStyle]
Companion
class
object Window
Companion
class
class Window extends EventHandlerDelegate2 with SFXDelegate[Window] with EventTarget
Companion
object
object WindowEvent
Companion
class
class WindowEvent(val delegate: WindowEvent) extends Event with SFXDelegate[WindowEvent]
Companion
object