scalafx.stage

package scalafx.stage

Wraps `javafx.stage` package.

Attributes

Members list

Type members

Classlikes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class DirectoryChooser(val delegate: DirectoryChooser) extends SFXDelegate[DirectoryChooser]

Attributes

Companion
object
Supertypes
trait SFXDelegate[DirectoryChooser]
class Object
trait Matchable
class Any
object FileChooser

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
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);
}

Attributes

Companion
object
Supertypes
trait SFXDelegate[FileChooser]
class Object
trait Matchable
class Any
object Modality extends SFXEnumDelegateCompanion[Modality, Modality]

Wrapper for javafx.stage.Modality

Wrapper for javafx.stage.Modality

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
Modality.type
sealed abstract class Modality(val delegate: Modality) extends SFXEnumDelegate[Modality]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[Modality]
trait SFXDelegate[Modality]
class Object
trait Matchable
class Any
Known subtypes
object ApplicationModal.type
object None.type
object WindowModal.type
object Popup

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Popup.type
class Popup(val delegate: Popup) extends PopupWindow, SFXDelegate[Popup]

Attributes

Companion
object
Supertypes
class PopupWindow
class Window
class EventTarget
trait SFXDelegate[Popup]
class Object
trait Matchable
class Any
Show all
object PopupWindow

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class PopupWindow(val delegate: PopupWindow) extends Window, SFXDelegate[PopupWindow]

Attributes

Companion
object
Supertypes
class Window
class EventTarget
trait SFXDelegate[PopupWindow]
class Object
trait Matchable
class Any
Show all
Known subtypes
class PopupControl
class ContextMenu
class Tooltip
class Popup
object Screen

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Screen.type
class Screen(val delegate: Screen) extends SFXDelegate[Screen]

Attributes

Companion
object
Supertypes
trait SFXDelegate[Screen]
class Object
trait Matchable
class Any
object Stage

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Stage.type
class Stage(val delegate: Stage) extends Window, SFXDelegate[Stage]

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

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

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

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

Attributes

Companion
object
Supertypes
class Window
class EventTarget
trait SFXDelegate[Stage]
class Object
trait Matchable
class Any
Show all
Known subtypes
object StageIncludes extends StageIncludes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

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.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object StageIncludes.type
trait Includes
object Includes.type
object StageStyle extends SFXEnumDelegateCompanion[StageStyle, StageStyle]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
StageStyle.type
sealed abstract class StageStyle(val delegate: StageStyle) extends SFXEnumDelegate[StageStyle]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[StageStyle]
trait SFXDelegate[StageStyle]
class Object
trait Matchable
class Any
Known subtypes
object Decorated.type
object Transparent.type
object Undecorated.type
object Unified.type
object Utility.type
object Window

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Window.type
class Window extends EventTarget, SFXDelegate[Window]

Attributes

Companion
object
Supertypes
class EventTarget
trait SFXDelegate[Window]
class Object
trait Matchable
class Any
Known subtypes
class PopupWindow
class PopupControl
class ContextMenu
class Tooltip
class Popup
class Stage
class PrimaryStage
class PrimaryStage
Show all
object WindowEvent

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class WindowEvent(val delegate: WindowEvent) extends Event, SFXDelegate[WindowEvent]

Attributes

Companion
object
Supertypes
class Event
trait SFXDelegate[WindowEvent]
class Object
trait Matchable
class Any