Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.

    Package Structure

    ScalaFX package structure corresponds to JavaFX package structure, for instance scalafx.animation corresponds to javafx.animation.

    Example Usage

    A basic ScalaFX application is created creating an object that is an instance of JFXApp. Following Java FX theatre metaphor, it contains a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp
    import scalafx.application.JFXApp.PrimaryStage
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp {
      stage = new PrimaryStage {
        title = "Hello"
        scene = new Scene {
          root = new BorderPane {
            padding = Insets(25)
            center = new Label("Hello World")
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package css

    Wraps javafx.css package.

    Wraps javafx.css package.

    Definition Classes
    scalafx
    Since

    8.0

  • CssIncludes
  • PseudoClass
  • StyleConverter
  • StyleOrigin
  • Styleable

trait Styleable extends SFXDelegate[javafx.css.Styleable]

Source
Styleable.scala
Since

8.0

Linear Supertypes
SFXDelegate[javafx.css.Styleable], AnyRef, Any
Known Subclasses
SwingNode, AmbientLight, Camera, Group, LightBase, Node, ParallelCamera, Parent, PerspectiveCamera, PointLight, SubScene, Canvas, AreaChart, Axis, BarChart, BubbleChart, CategoryAxis, Chart, LineChart, NumberAxis, PieChart, ScatterChart, StackedAreaChart, StackedBarChart, ValueAxis, XYChart, Accordion, Button, ButtonBar, ButtonBase, Cell, CheckBox, CheckMenuItem, ChoiceBox, ColorPicker, ComboBox, ComboBoxBase, ContextMenu, Control, CustomMenuItem, DateCell, DatePicker, DialogPane, Hyperlink, IndexedCell, Label, Labeled, ListCell, ListView, Menu, MenuBar, MenuButton, MenuItem, Pagination, PasswordField, PopupControl, ProgressBar, ProgressIndicator, RadioButton, RadioMenuItem, ScrollBar, ScrollPane, Separator, SeparatorMenuItem, Slider, Spinner, SplitMenuButton, SplitPane, Tab, TabPane, TableCell, TableColumn, TableColumnBase, TableRow, TableView, TextArea, TextField, TextInputControl, TitledPane, ToggleButton, ToolBar, Tooltip, TreeCell, TreeTableCell, TreeTableColumn, TreeTableRow, TreeTableView, TreeView, CheckBoxListCell, CheckBoxTableCell, CheckBoxTreeCell, CheckBoxTreeTableCell, ChoiceBoxListCell, ChoiceBoxTableCell, ChoiceBoxTreeCell, ChoiceBoxTreeTableCell, ComboBoxListCell, ComboBoxTableCell, ComboBoxTreeCell, ComboBoxTreeTableCell, ProgressBarTableCell, TextFieldListCell, TextFieldTableCell, TextFieldTreeCell, TextFieldTreeTableCell, ImageView, AnchorPane, BorderPane, FlowPane, GridPane, HBox, Pane, Region, StackPane, TilePane, VBox, MediaView, Arc, Box, Circle, CubicCurve, Cylinder, Ellipse, Line, MeshView, Path, Polygon, Polyline, QuadCurve, Rectangle, SVGPath, Shape, Shape3D, Sphere, Text, TextFlow, HTMLEditor, WebView
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Styleable
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def delegate: javafx.css.Styleable

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    SFXDelegate

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def cssMetaData: Seq[CssMetaData[_ <: javafx.css.Styleable, _]]

    The CssMetaData of this Styleable.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(ref: Any): Boolean

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getId: String

    The id of this Styleable.

    The id of this Styleable.

    IMPLEMENTATION NOTE: For this method was adopted the name getId instead id to not conflict with its subclasses already have a method with this name which returns a StringProperty.

  11. def getStyle: String

    A string representation of the CSS style associated with this specific Node.

    A string representation of the CSS style associated with this specific Node.

    IMPLEMENTATION NOTE: For this method was adopted the name getStyle instead style to not conflict with its subclasses already have a method with this name which returns a StringProperty.

  12. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def pseudoClassStates: ObservableSet[javafx.css.PseudoClass]

    The pseudo-class state of this Styleable.

  18. def styleClass: ObservableBuffer[String]

    A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.

  19. def styleableNode: Node

    Returns the Node that represents this Styleable object.

    Returns the Node that represents this Styleable object. This method should be overridden in cases where the Styleable is not itself a Node, so that it may optionally return the relevant root node representation of itself. By default this method returns null, which can mean that either the Styleable itself is a Node, or if that is not the case, that the Styleable does not have a node representation available at the time of request.

    returns

    the Node that represents this Styleable object

    Since

    9

  20. def styleableParent: Styleable

    The parent of this Styleable, or null if there is no parent.

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  23. def typeSelector: String

    The type of this Styleable that is to be used in selector matching.

  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SFXDelegate[javafx.css.Styleable]

Inherited from AnyRef

Inherited from Any

Ungrouped