package control
- Alphabetic
- By Inheritance
- control
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package cell
Wraps
javafx.scene.control.cell
package.
Type Members
- class Accordion extends Control with SFXDelegate[javafx.scene.control.Accordion]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Accordion.html.
- class Alert extends Dialog[javafx.scene.control.ButtonType] with SFXDelegate[javafx.scene.control.Alert]
The Alert class subclasses the
Dialog
class, and provides support for a number of pre-built dialog types that can be easily shown to users to prompt for a response.The Alert class subclasses the
Dialog
class, and provides support for a number of pre-built dialog types that can be easily shown to users to prompt for a response.Wraps a JavaFX Alert.
Example of displaying an information dialog:
new Alert(AlertType.Information) { title = "Information Dialog" headerText = "Look, an Information Dialog" contentText = "I have a great message for you!" }.showAndWait()
A bit more elaborated example that is using a custom buttons:
val One = new ButtonType("One") val Two = new ButtonType("Two") val Three = new ButtonType("Three") val alert = new Alert(AlertType.Confirmation) { title = "Confirmation Dialog with Custom Actions" headerText = "Look, a Confirmation Dialog with Custom Actions" contentText = "Choose your option." buttonTypes = Seq(One, Two, Three, ButtonType.Cancel) } val result = alert.showAndWait() result match { case Some(One) => println("... user chose \"One\"") case Some(Two) => println("... user chose \"Two\"") case Some(Three) => println("... user chose \"Three\"") case _ => println("... user chose CANCEL or closed the dialog") }
- class Button extends ButtonBase with SFXDelegate[javafx.scene.control.Button]
- class ButtonBar extends Control with SFXDelegate[javafx.scene.control.ButtonBar]
A ButtonBar is essentially a HBox, with the additional functionality for operating system specific button placement.
A ButtonBar is essentially a HBox, with the additional functionality for operating system specific button placement.
Wraps a JavaFX ButtonBar.
- abstract class ButtonBase extends Labeled with FireDelegate[javafx.scene.control.ButtonBase] with SFXDelegate[javafx.scene.control.ButtonBase]
- class ButtonType extends SFXDelegate[javafx.scene.control.ButtonType]
The ButtonType is used to specify which buttons should be shown to users in the dialogs.
The ButtonType is used to specify which buttons should be shown to users in the dialogs.
Wraps a JavaFX ButtonType.
- class Cell[T] extends Labeled with SFXDelegate[javafx.scene.control.Cell[T]]
- class CheckBox extends ButtonBase with SFXDelegate[javafx.scene.control.CheckBox]
- class CheckMenuItem extends MenuItem with SFXDelegate[javafx.scene.control.CheckMenuItem]
A MenuItem that can be toggled between selected and unselected states.
- class ChoiceBox[J] extends Control with SFXDelegate[javafx.scene.control.ChoiceBox[J]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ChoiceBox.html.
- class ChoiceDialog[T] extends Dialog[T] with SFXDelegate[javafx.scene.control.ChoiceDialog[T]]
A dialog that shows a list of choices to the user, from which they can pick one item at most.
A dialog that shows a list of choices to the user, from which they can pick one item at most.
Wraps a JavaFX https://docs.oracle.com/javase/8/javafx/api/javafx/scalafx.scene.control/ChoiceDialog.html ChoiceDialog.
- T
The type of the items to show to the user, and the type that is returned via
result
when the dialog is dismissed.
- See also
Dialog
- class ColorPicker extends ComboBoxBase[Color] with SFXDelegate[javafx.scene.control.ColorPicker]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Pagination.html
- class ComboBox[T] extends ComboBoxBase[T] with SFXDelegate[javafx.scene.control.ComboBox[T]]
Wraps JavaFX ComboBox, an implementation of the ComboBoxBase abstract class for the most common form of ComboBox, where a popup list is shown to users providing them with a choice that they may select from.
Wraps JavaFX ComboBox, an implementation of the ComboBoxBase abstract class for the most common form of ComboBox, where a popup list is shown to users providing them with a choice that they may select from.
On top of ComboBoxBase, the ComboBox class introduces additional API. Most importantly, it adds an items property that works in much the same way as the ListView items property. In other words, it is the content of the items list that is displayed to users when they click on the ComboBox button.
It is not recommended to add
Node
s as ComboBox items. ScalaFX provides for a convenient customization of a ComboBox content. RequiredNode
or other customization is add ed through cell factory. Following code will show coloredRectangle
representing item'sColor
val comboBox = new ComboBox[Color] { items = Seq(Color.Red, Color.Green, Color.Blue) // Custom factory displaying list items are colored rectangles // `color` is the value of the item displayed cellFactory = (cell, color) => { cell.contentDisplay = ContentDisplay.GraphicOnly cell.graphic = Rectangle(10, 10, color) } }
- T
The type of the value that has been selected or otherwise entered in to this ComboBox
- abstract class ComboBoxBase[T] extends Control with SFXDelegate[javafx.scene.control.ComboBoxBase[T]]
- sealed abstract class ContentDisplay extends SFXEnumDelegate[javafx.scene.control.ContentDisplay]
- class ContextMenu extends PopupControl with SFXDelegate[javafx.scene.control.ContextMenu]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ContextMenu.html.
- abstract class Control extends Region with Skinnable with SFXDelegate[javafx.scene.control.Control]
- trait ControlIncludes extends CellIncludes
Contains implicit methods to convert from
javafx.scene.control
classes/traits to their ScalaFX counterparts. - class CustomMenuItem extends MenuItem with SFXDelegate[javafx.scene.control.CustomMenuItem]
A MenuItem that allows for arbitrary nodes to be embedded within it, by assigning a Node to the content property.
A MenuItem that allows for arbitrary nodes to be embedded within it, by assigning a Node to the content property.
Wraps a JavaFX CustomMenuItem.
- trait DConvert[T, F] extends AnyRef
Helper trait for converting dialog return type.
Helper trait for converting dialog return type. Not intended for separate use.
- class DateCell extends Cell[LocalDate] with SFXDelegate[javafx.scene.control.DateCell]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/DateCell.html.
- class DatePicker extends ComboBoxBase[LocalDate] with SFXDelegate[javafx.scene.control.DatePicker]
The DatePicker control allows the user to enter a date as text or to select a date from a calendar popup.
The DatePicker control allows the user to enter a date as text or to select a date from a calendar popup. The calendar is based on either the standard ISO-8601 chronology or any of the other chronology classes defined in the
java.time.chrono
package.Wraps https://openjfx.io/javadoc/16/javafx.controls/javafx/scene/control/DatePicker.html.
- class Dialog[R] extends EventTarget with SFXDelegate[javafx.scene.control.Dialog[R]]
A Dialog wraps a DialogPane and provides the necessary API to present it to end users.
A Dialog wraps a DialogPane and provides the necessary API to present it to end users.
Wraps a JavaFX Dialog.
- R
The default return type of the dialog, via the result property or
showAndWait
method.
- class DialogEvent extends Event with SFXDelegate[javafx.scene.control.DialogEvent]
Event related to dialog showing/hiding actions.
Event related to dialog showing/hiding actions. Wraps a JavaFX DialogEvent.
- class DialogPane extends Pane with SFXDelegate[javafx.scene.control.DialogPane]
DialogPane should be considered to be the root node displayed within a Dialog instance.
DialogPane should be considered to be the root node displayed within a Dialog instance.
Wraps a JavaFX DialogPane.
- abstract class FocusModel[T] extends SFXDelegate[javafx.scene.control.FocusModel[T]]
Wraps a JavaFX FocusModel.
Wraps a JavaFX FocusModel.
- T
The type of the underlying data model for the UI control.
- class Hyperlink extends ButtonBase with SFXDelegate[javafx.scene.control.Hyperlink]
- class IndexRange extends SFXDelegate[javafx.scene.control.IndexRange]
- class IndexedCell[T] extends Cell[T] with SFXDelegate[javafx.scene.control.IndexedCell[T]]
- class Label extends Labeled with SFXDelegate[javafx.scene.control.Label]
- abstract class Labeled extends Control with AlignmentDelegate[javafx.scene.control.Labeled] with SFXDelegate[javafx.scene.control.Labeled]
- class ListCell[T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.ListCell[T]]
- class ListView[T] extends Control with SFXDelegate[javafx.scene.control.ListView[T]]
A ListView displays a horizontal or vertical list of items from which the user may select, or with which the user may interact.
A ListView displays a horizontal or vertical list of items from which the user may select, or with which the user may interact. A ListView is able to have its generic type set to represent the type of data in the backing model.
- class Menu extends MenuItem with SFXDelegate[javafx.scene.control.Menu]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Menu.html.
- class MenuBar extends Control with SFXDelegate[javafx.scene.control.MenuBar]
- class MenuButton extends ButtonBase with SFXDelegate[javafx.scene.control.MenuButton]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/MenuButton.html.
- class MenuItem extends EventTarget with Styleable with FireDelegate[javafx.scene.control.MenuItem] with SFXDelegate[javafx.scene.control.MenuItem]
- abstract class MultipleSelectionModel[T] extends SelectionModel[T] with SFXDelegate[javafx.scene.control.MultipleSelectionModel[T]]
- sealed abstract class OverrunStyle extends SFXEnumDelegate[javafx.scene.control.OverrunStyle]
- class Pagination extends Control with SFXDelegate[javafx.scene.control.Pagination]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Pagination.html
- class PasswordField extends TextField with SFXDelegate[javafx.scene.control.PasswordField]
- class PopupControl extends PopupWindow with Styleable with Skinnable with SFXDelegate[javafx.scene.control.PopupControl]
Wraps a JavaFX PopupControl.
- class ProgressBar extends ProgressIndicator with SFXDelegate[javafx.scene.control.ProgressBar]
- class ProgressIndicator extends Control with SFXDelegate[javafx.scene.control.ProgressIndicator]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ProgressIndicator.html
- class RadioButton extends ToggleButton with SFXDelegate[javafx.scene.control.RadioButton]
- class RadioMenuItem extends MenuItem with Toggle with SFXDelegate[javafx.scene.control.RadioMenuItem]
Wrapper class for scalafx.scene.control.RadioMenuItem
- abstract class ResizeFeaturesBase[S] extends SFXDelegate[javafx.scene.control.ResizeFeaturesBase[S]]
Wraps JavaFX ResizeFeaturesBase.
- class ScrollBar extends Control with SFXDelegate[javafx.scene.control.ScrollBar]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ScrollBar.html
- class ScrollPane extends Control with SFXDelegate[javafx.scene.control.ScrollPane]
- class ScrollToEvent[T] extends Event with SFXDelegate[javafx.scene.control.ScrollToEvent[T]]
Wraps JavaFX ScrollToEvent.
Wraps JavaFX ScrollToEvent.
- T
scroll target type
- sealed abstract class SelectionMode extends SFXEnumDelegate[javafx.scene.control.SelectionMode]
- abstract class SelectionModel[T] extends SFXDelegate[javafx.scene.control.SelectionModel[T]]
- class Separator extends Control with SFXDelegate[javafx.scene.control.Separator]
- class SeparatorMenuItem extends CustomMenuItem with SFXDelegate[javafx.scene.control.SeparatorMenuItem]
A MenuItem that as the name suggests allows for a horizontal Separator to be embedded within it, by assigning a Separator to the content property of the CustomMenuItem.
A MenuItem that as the name suggests allows for a horizontal Separator to be embedded within it, by assigning a Separator to the content property of the CustomMenuItem.
Wraps a JavaFX SeparatorMenuItem.
- abstract class SingleSelectionModel[T] extends SelectionModel[T] with SFXDelegate[javafx.scene.control.SingleSelectionModel[T]]
- trait Skin[C <: javafx.scene.control.Skinnable] extends SFXDelegate[javafx.scene.control.Skin[C]]
Wraps javafx.scene.control.Skinnable interface.
- abstract class SkinBase[C <: javafx.scene.control.Control] extends SFXDelegate[javafx.scene.control.SkinBase[C]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/SkinBase.html.
- trait Skinnable extends SFXDelegate[javafx.scene.control.Skinnable]
- class Slider extends Control with SFXDelegate[javafx.scene.control.Slider]
- class SortEvent[C] extends Event with SFXDelegate[javafx.scene.control.SortEvent[C]]
Wraps a JavaFX SortEvent.
- class Spinner[T] extends Control with SFXDelegate[javafx.scene.control.Spinner[T]]
A single line text field that lets the user select a number or an object value from an ordered sequence.
A single line text field that lets the user select a number or an object value from an ordered sequence.
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Spinner.html.
- T
The type of all values that can be iterated through in the Spinner. Common types include Integer and String.
- abstract class SpinnerValueFactory[T] extends SFXDelegate[javafx.scene.control.SpinnerValueFactory[T]]
The SpinnerValueFactory is the model behind the
Spinner
control - without a value factory installed aSpinner
is unusable.The SpinnerValueFactory is the model behind the
Spinner
control - without a value factory installed aSpinner
is unusable.Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/SpinnerValueFactory.html.
- T
The type of the data this value factory deals with, which must coincide with the type of the Spinner that the value factory is set on.
- class SplitMenuButton extends MenuButton with SFXDelegate[javafx.scene.control.SplitMenuButton]
Wrapper for
javafx.scene.control.SplitMenuButton
. - class SplitPane extends Control with SFXDelegate[javafx.scene.control.SplitPane]
- class Tab extends Styleable with SFXDelegate[javafx.scene.control.Tab]
- class TabPane extends Control with SFXDelegate[javafx.scene.control.TabPane]
- class TableCell[S, T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.TableCell[S, T]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TableCell.html.
- class TableColumn[S, T] extends TableColumnBase[S, T] with SFXDelegate[javafx.scene.control.TableColumn[S, T]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TableColumn.html.
- abstract class TableColumnBase[S, T] extends EventTarget with Styleable with SFXDelegate[javafx.scene.control.TableColumnBase[S, T]]
Wraps http://docs.oracle.com/javafx/8/api/javafx/scene/control/TableColumnBase.html.
- abstract class TableFocusModel[T, TC <: javafx.scene.control.TableColumnBase[T, _]] extends FocusModel[T] with SFXDelegate[javafx.scene.control.TableFocusModel[T, TC]]
Wraps a JavaFX TableFocusModel.
Wraps a JavaFX TableFocusModel.
- T
The type of the underlying data model for the UI control.
- TC
The concrete subclass of scalafx.scene.control.TableColumnBase that is used by the underlying UI control (e.g. scalafx.scene.control.TableColumn or
TreeTableColumn
).
- Since
8.0
- class TablePosition[S, T] extends TablePositionBase[javafx.scene.control.TableColumn[S, T]] with SFXDelegate[javafx.scene.control.TablePosition[S, T]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TablePosition.html.
- S
The type of the items contained within the TableView (i.e. the same generic type as the S in TableView<S>).
- T
The type of the items contained within the TableColumn.
- abstract class TablePositionBase[TC <: javafx.scene.control.TableColumnBase[_, _]] extends SFXDelegate[javafx.scene.control.TablePositionBase[TC]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TablePosition.html.
- TC
A JavaFX TableColumnBase subclass
- Since
8.0
- class TableRow[T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.TableRow[T]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TableRow.html.
- class TableSelectionModel[T] extends MultipleSelectionModel[T] with SFXDelegate[javafx.scene.control.TableSelectionModel[T]]
Wraps JavaFX TableSelectionModel.
Wraps JavaFX TableSelectionModel.
- T
The type of the underlying data model for the UI control.
- Since
8.0
- class TableView[S] extends Control with SFXDelegate[javafx.scene.control.TableView[S]]
Wraps JavaFX TableView.
Wraps JavaFX TableView.
- S
The type of the objects contained within the TableView items list.
- class TextArea extends TextInputControl with SFXDelegate[javafx.scene.control.TextArea]
- class TextField extends TextInputControl with AlignmentDelegate[javafx.scene.control.TextField] with SFXDelegate[javafx.scene.control.TextField]
- class TextFormatter[V] extends SFXDelegate[javafx.scene.control.TextFormatter[V]]
A Formatter describes a format of a
TextInputControl
text.A Formatter describes a format of a
TextInputControl
text.Wraps a JavaFX TextFormatter.
- abstract class TextInputControl extends Control with SFXDelegate[javafx.scene.control.TextInputControl]
- class TextInputDialog extends Dialog[String] with SFXDelegate[javafx.scene.control.TextInputDialog]
A dialog that shows a text input control to the user.
A dialog that shows a text input control to the user.
Wraps a JavaFX TextInputDialog.
- class TitledPane extends Labeled with SFXDelegate[javafx.scene.control.TitledPane]
- trait Toggle extends SFXDelegate[javafx.scene.control.Toggle]
Wrapper trait to Toggle interface.
- class ToggleButton extends ButtonBase with Toggle with SFXDelegate[javafx.scene.control.ToggleButton]
- class ToggleGroup extends SFXDelegate[javafx.scene.control.ToggleGroup]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ToggleGroup.html.
- class ToolBar extends Control with SFXDelegate[javafx.scene.control.ToolBar]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ToolBar.html.
- class Tooltip extends PopupControl with SFXDelegate[javafx.scene.control.Tooltip]
Wraps a JavaFX Tooltip.
- class TreeCell[T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.TreeCell[T]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TreeCell.html
- T
The type of the value contained within the
TreeItem
property.
- class TreeItem[T] extends EventTarget with SFXDelegate[javafx.scene.control.TreeItem[T]]
Wraps javafx.scene.control.TreeItem class.
- sealed abstract class TreeSortMode extends SFXEnumDelegate[javafx.scene.control.TreeSortMode]
Wraps JavaFX TreeSortMode.
Wraps JavaFX TreeSortMode.
- Since
8.0
- class TreeTableCell[S, T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.TreeTableCell[S, T]]
Wraps a JavaFX TreeTableCell.
Wraps a JavaFX TreeTableCell.
- S
The type of the item contained within the Cell.
- T
The type of the item contained within the Cell.
- Since
8.0
- class TreeTableColumn[S, T] extends TableColumnBase[javafx.scene.control.TreeItem[S], T] with SFXDelegate[javafx.scene.control.TreeTableColumn[S, T]]
A
TreeTableView
is made up of a number ofTreeTableColumn
instances.A
TreeTableView
is made up of a number ofTreeTableColumn
instances. EachTreeTableColumn
in aTreeTableView
is responsible for displaying (and editing) the contents of that column.Wraps a JavaFX TreeTableColumn
- S
The type of the TreeTableView generic type (i.e. S == TreeTableView<S>)
- T
The type of the content in all cells in this TreeTableColumn.
- Since
8.0
- class TreeTablePosition[S, T] extends TablePositionBase[javafx.scene.control.TreeTableColumn[S, T]] with SFXDelegate[javafx.scene.control.TreeTablePosition[S, T]]
Wraps a JavaFX TreeTablePosition.
Wraps a JavaFX TreeTablePosition.
- S
The type of the TreeItem instances contained within the TreeTableView.
- T
The type of the items contained within the TreeTableColumn.
- Since
8.0
- class TreeTableRow[T] extends IndexedCell[T] with SFXDelegate[javafx.scene.control.TreeTableRow[T]]
Wraps a JavaFX TreeTableRow.
- class TreeTableView[S] extends Control with SFXDelegate[javafx.scene.control.TreeTableView[S]]
The
TreeTableView
control is designed to visualize an unlimited number of rows of data, broken out into columns.The
TreeTableView
control is designed to visualize an unlimited number of rows of data, broken out into columns. TheTreeTableView
control is conceptually very similar to theTreeView
andTableView
controls, and as you read on you'll come to see the APIs are largely the same. However, to give a high-level overview, you'll note that theTreeTableView
uses the sameTreeItem
API asTreeView
, and that you therefore are required to simply set the root node in theTreeTableView
. Similarly, theTreeTableView
control makes use of the sameTableColumn
-based approach that theTableView
control uses, except instead of using theTableView
-specificTableColumn
class, you should instead use theTreeTableView
-specificTreeTableColumn
class instead.Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TreeTableView.TreeTableView.html
- S
The type of the TreeItem instances used in this TreeTableView.
- Since
8.0
- class TreeView[T] extends Control with SFXDelegate[javafx.scene.control.TreeView[T]]
The
TreeView
control provides a view on to a tree root (of typeTreeItem
).The
TreeView
control provides a view on to a tree root (of typeTreeItem
). By using aTreeView
, it is possible to drill down into the children of aTreeItem
, recursively until aTreeItem
has no children (that is, it is a leaf node in the tree). To facilitate this, unlike controls likeListView
, inTreeView
it is necessary to only specify the root node.For more information on building up a tree using this approach, refer to the
TreeItem
class documentation. Briefly, to create aTreeView
, you should do something along the lines of the following:val rootItem = new TreeItem("Root Node") { expanded = true children ++= Seq( new TreeItem("Item 1"), new TreeItem("Item 2"), new TreeItem("Item 3") ) } val treeView = new TreeView[String] { root = rootItem }
- T
The type of the item contained within the
TreeItem
value property for all tree items in thisTreeView
.
Deprecated Type Members
- class TextFieldProperty extends ReadOnlyObjectProperty[javafx.scene.control.TextField] with SFXDelegate[ReadOnlyObjectProperty[javafx.scene.control.TextField]] with AlignmentPropertyDelegate
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use of TextFieldProperty can result in infinite recursion and StackOverflow errors. See discussion of [Issue #69](https://github.com/scalafx/scalafx/issues/69)
Value Members
- object Accordion
- object Alert
- object Button
- object ButtonBar
Object companion for scalafx.scene.control.ButtonBar.
- object ButtonBase
- object ButtonType
Object companion for scalafx.scene.control.ButtonType.
- object Cell
- object CheckBox
- object CheckMenuItem
- object ChoiceBox
- object ChoiceDialog
- object ColorPicker
- object ComboBox
- object ComboBoxBase
- object ContentDisplay extends SFXEnumDelegateCompanion[javafx.scene.control.ContentDisplay, ContentDisplay]
Wrapper for scalafx.scene.control.ContentDisplay
- object ContextMenu
- object Control
- object ControlIncludes extends ControlIncludes
- object CustomMenuItem
Object companion for CustomMenuItem.
- object DConvert
- object DateCell
- object DatePicker
- object Dialog
Object companion for scalafx.scene.control.Dialog.
- object DialogEvent
Object companion for scalafx.scene.control.DialogEvent.
- object DialogPane
Object companion for scalafx.scene.control.DialogPane.
- object FocusModel
Object companion for scalafx.scene.control.FocusModel.
- object Hyperlink
- object IndexRange
- object IndexedCell
- object Label
- object Labeled
- object ListCell
- object ListView
- object Menu
- object MenuBar
- object MenuButton
- object MenuItem
- object MultipleSelectionModel
- object OverrunStyle extends SFXEnumDelegateCompanion[javafx.scene.control.OverrunStyle, OverrunStyle]
Wrapper for scalafx.scene.control.OverrunStyle
- object Pagination
- object PasswordField
- object PopupControl
Object companion for scalafx.scene.control.PopupControl.
- object ProgressBar
- object ProgressIndicator
- object RadioButton
- object RadioMenuItem
- object ResizeFeaturesBase
Object companion for scalafx.scene.control.ResizeFeaturesBase
Object companion for scalafx.scene.control.ResizeFeaturesBase
- Since
8.0
- object ScrollBar
- object ScrollPane
- object ScrollToEvent
Companion Object for scalafx.scene.control.ScrollToEvent.
- object SelectionMode extends SFXEnumDelegateCompanion[javafx.scene.control.SelectionMode, SelectionMode]
Wrapper for scalafx.scene.control.SelectionMode
- object SelectionModel
- object Separator
- object SeparatorMenuItem
Object companion for scalafx.scene.control.SeparatorMenuItem.
- object SingleSelectionModel
- object Skin
- object SkinBase
- object Skinnable
- object Slider
- object SortEvent
Object Companion for scalafx.scene.control.SortEvent
Object Companion for scalafx.scene.control.SortEvent
- Since
8.0
- object Spinner
- object SpinnerValueFactory
- object SplitMenuButton
- object SplitPane
- object Tab
- object TabPane
- object TableCell
- object TableColumn
- object TableColumnBase
- object TableFocusModel
Object companion for scalafx.scene.control.TableFocusModel.
Object companion for scalafx.scene.control.TableFocusModel.
- Since
8.0
- object TablePosition
Object companion for scalafx.scene.control.TablePosition
- object TablePositionBase
Object companion for scalafx.scene.control.TablePositionBase
Object companion for scalafx.scene.control.TablePositionBase
- Since
8.0
- object TableRow
- object TableSelectionModel
Object companion for scalafx.scene.control.TablePositionBase
Object companion for scalafx.scene.control.TablePositionBase
- Since
8.0
- object TableView
Object companion for scalafx.scene.controlTableView.
- object TextArea
- object TextField
- object TextFormatter
- object TextInputControl
- object TextInputDialog
- object TitledPane
- object Toggle
- object ToggleButton
- object ToggleGroup
- object ToolBar
- object Tooltip
Object companion for scalafx.scene.control.PopupControl.
- object TreeCell
- object TreeItem
- object TreeSortMode extends SFXEnumDelegateCompanion[javafx.scene.control.TreeSortMode, TreeSortMode]
Wrapper for scalafx.scene.control.TreeSortMode
- object TreeTableCell
Object Companion for scalafx.scene.control.SortEvent
Object Companion for scalafx.scene.control.SortEvent
- Since
8.0
- object TreeTableColumn
Object companion for scalafx.scene.control.TreeTableColumn
- object TreeTablePosition
Object companion for scalafx.scene.control.TreeTablePosition.
Object companion for scalafx.scene.control.TreeTablePosition.
- Since
8.0
- object TreeTableRow
Object companion for scalafx.scene.control.TreeTableRow.
Object companion for scalafx.scene.control.TreeTableRow.
- Since
8.0
- object TreeTableView
Object companion for scalafx.scene.control.TreeTableView
- object TreeView
Deprecated Value Members
- object TextFieldProperty
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use of TextFieldProperty can result in infinite recursion and StackOverflow errors. See discussion of [Issue #69](https://github.com/scalafx/scalafx/issues/69)
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 tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp3
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.