scalafx.scene.control
Type members
Classlikes
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")
}
- Companion
- object
Object companion for scalafx.scene.control.ButtonBar.
Object companion for scalafx.scene.control.ButtonBar.
- Companion
- class
- Companion
- object
Object companion for scalafx.scene.control.ButtonType.
Object companion for scalafx.scene.control.ButtonType.
- Companion
- class
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.
- Companion
- object
A MenuItem that can be toggled between selected and unselected states.
A MenuItem that can be toggled between selected and unselected states.
- Companion
- object
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.
- Type Params
- T
The type of the items to show to the user, and the type that is returned via
result
when the dialog is dismissed.
- Constructor
Creates a default, empty instance of ChoiceDialog with no set items and a null default choice. Users of this constructor will subsequently need to call
items
to specify which items to show to the user.- See also
Dialog
- Companion
- object
- Companion
- object
Wrapper for scalafx.scene.control.ContentDisplay
Wrapper for scalafx.scene.control.ContentDisplay
- Companion
- class
- Companion
- object
- Companion
- object
Contains implicit methods to convert from `javafx.scene.control` classes/traits to their ScalaFX counterparts.
Contains implicit methods to convert from `javafx.scene.control` classes/traits to their ScalaFX counterparts.
- Companion
- object
Object companion for CustomMenuItem.
Object companion for CustomMenuItem.
- Companion
- class
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.
- Value Params
- delegate
A JavaFX CustomMenuItem to be wrapped. Its default value is a new JavaFX CustomMenuItem.
- Constructor
Creates a new CustomMenuItem from a JavaFX one.
- Companion
- object
Helper trait for converting dialog return type. Not intended for separate use.
Helper trait for converting dialog return type. Not intended for separate use.
- Companion
- object
Object companion for scalafx.scene.control.Dialog.
Object companion for scalafx.scene.control.Dialog.
- Companion
- class
Object companion for scalafx.scene.control.DialogEvent.
Object companion for scalafx.scene.control.DialogEvent.
- Companion
- class
Event related to dialog showing/hiding actions. Wraps a JavaFX DialogEvent.
Event related to dialog showing/hiding actions. Wraps a JavaFX DialogEvent.
- Companion
- object
Object companion for scalafx.scene.control.DialogPane.
Object companion for scalafx.scene.control.DialogPane.
- Companion
- class
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.
- Companion
- object
Object companion for scalafx.scene.control.FocusModel.
Object companion for scalafx.scene.control.FocusModel.
- Companion
- class
Wraps a JavaFX FocusModel.
Wraps a JavaFX FocusModel.
- Type Params
- T
The type of the underlying data model for the UI control.
- Value Params
- delegate
JavaFX FocusModel to be wrapped.
- Constructor
Creates a new ScalaFX FocusModel from its JavaFX counterpart.
- Companion
- object
- Companion
- object
- Constructor
Creates a default ListView which will display contents stacked vertically.
- Companion
- object
- Companion
- object
- Companion
- object
Wrapper for scalafx.scene.control.OverrunStyle
Wrapper for scalafx.scene.control.OverrunStyle
- Companion
- class
- Companion
- object
Object companion for scalafx.scene.control.PopupControl.
Object companion for scalafx.scene.control.PopupControl.
- Companion
- class
Wraps a JavaFX PopupControl.
Wraps a JavaFX PopupControl.
- Value Params
- delegate
JavaFX PopupControl to be wrapped. It defaul value is a new JavaFX PopupControl
- Constructor
Creates a new ScalaFX PopupControl from its JavaFX counterpart.
- Companion
- object
- Companion
- object
Wrapper class for scalafx.scene.control.RadioMenuItem
Wrapper class for scalafx.scene.control.RadioMenuItem
- Companion
- object
Object companion for scalafx.scene.control.ResizeFeaturesBase
Object companion for scalafx.scene.control.ResizeFeaturesBase
- Since
8.0
- Companion
- class
Wraps JavaFX ResizeFeaturesBase.
Wraps JavaFX ResizeFeaturesBase.
- Type Params
- S
The type of the UI control (e.g. the type of the 'row').
- Value Params
- delegate
JavaFX ResizeFeaturesBase to be wrapped.
- Constructor
Creates a new ScalaFX ResizeFeaturesBase from a JavaFX ResizeFeaturesBase.
- Since
8.0
- Companion
- object
Companion Object for scalafx.scene.control.ScrollToEvent.
Companion Object for scalafx.scene.control.ScrollToEvent.
- Companion
- class
Wraps JavaFX ScrollToEvent.
Wraps JavaFX ScrollToEvent.
- Type Params
- T
scroll target type
- Value Params
- delegate
JavaFX ScrollToEvent
- Constructor
Creates a new ScrollToEvent from its JavaFX counterpart.
- Companion
- object
Wrapper for scalafx.scene.control.SelectionMode
Wrapper for scalafx.scene.control.SelectionMode
- Companion
- class
- Companion
- object
- Companion
- object
Object companion for scalafx.scene.control.SeparatorMenuItem.
Object companion for scalafx.scene.control.SeparatorMenuItem.
- Companion
- class
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.
- Value Params
- delegate
A JavaFX SeparatorMenuItem to be wrapped. Its default value is a new JavaFX SeparatorMenuItem.
- Constructor
Creates a new SeparatorMenuItem from a JavaFX one.
- Companion
- object
- Companion
- object
Wraps javafx.scene.control.Skinnable interface.
Wraps javafx.scene.control.Skinnable interface.
- Companion
- object
Object Companion for scalafx.scene.control.SortEvent
Object Companion for scalafx.scene.control.SortEvent
- Since
8.0
- Companion
- class
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 $JFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Spinner.html.
- Type Params
- T
The type of all values that can be iterated through in the Spinner. Common types include Integer and String.
- Value Params
- delegate
A JavaFX Spinner to be wrapped. Its default value is a new JavaFX Spinner.
- Constructor
Constructs a default Spinner instance, with the default 'spinner' style class and a non-editable editor.
- Companion
- object
The SpinnerValueFactory is the model behind the Spinner
control - without a value factory installed a
Spinner
is unusable.
The SpinnerValueFactory is the model behind the Spinner
control - without a value factory installed a
Spinner
is unusable.
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/SpinnerValueFactory.html.
- Type Params
- 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.
- Value Params
- delegate
A JavaFX SpinnerValueFactory to be wrapped. Its default value is a new JavaFX SpinnerValueFactory.
- Companion
- object
Wrapper for javafx.scene.control.SplitMenuButton
.
Wrapper for javafx.scene.control.SplitMenuButton
.
- Companion
- object
Object companion for scalafx.scene.control.TableFocusModel.
Object companion for scalafx.scene.control.TableFocusModel.
- Since
8.0
- Companion
- class
Wraps a JavaFX TableFocusModel.
Wraps a JavaFX TableFocusModel.
- Type Params
- 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
).
- Value Params
- delegate
JavaFX TableFocusModel to be wrapped.
- Constructor
Creates a new ScalaFX TableFocusModel from its JavaFX counterpart.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TablePosition
Object companion for scalafx.scene.control.TablePosition
- Companion
- class
- Type Params
- S
The type of the items contained within the TableView (i.e. the same generic type as the S in TableView
).- T
The type of the items contained within the TableColumn.
- Value Params
- JavaFX
TablePositionBase to be wrapped
- Constructor
creates a new ScalaFX TablePosition from a JavaFX one.
- Companion
- object
Object companion for scalafx.scene.control.TablePositionBase
Object companion for scalafx.scene.control.TablePositionBase
- Since
8.0
- Companion
- class
- Type Params
- TC
A JavaFX TableColumnBase subclass
- Value Params
- delegate
JavaFX TablePositionBase
- Constructor
creates a new ScalaFX TablePositionBase from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TablePositionBase
Object companion for scalafx.scene.control.TablePositionBase
- Since
8.0
- Companion
- class
Wraps JavaFX TableSelectionModel.
Wraps JavaFX TableSelectionModel.
- Type Params
- T
The type of the underlying data model for the UI control.
- Value Params
- delegate
JavaFX TableSelectionModel
- Constructor
creates a new ScalaFX TableSelectionModel from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.controlTableView.
Object companion for scalafx.scene.controlTableView.
- Companion
- class
- Companion
- object
A Formatter describes a format of a TextInputControl
text.
A Formatter describes a format of a TextInputControl
text.
Wraps a JavaFX TextFormatter.
- Companion
- object
- Companion
- object
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.
- Constructor
Creates a new TextInputDialog without a default value entered into the dialog.
- Companion
- object
- Companion
- object
Object companion for scalafx.scene.control.PopupControl.
Object companion for scalafx.scene.control.PopupControl.
- Companion
- class
Wraps javafx.scene.control.TreeItem class.
Wraps javafx.scene.control.TreeItem class.
- Companion
- object
Wrapper for scalafx.scene.control.TreeSortMode
Wrapper for scalafx.scene.control.TreeSortMode
- Companion
- class
Wraps JavaFX TreeSortMode.
Wraps JavaFX TreeSortMode.
- Value Params
- delegate
JavaFX TreeSortMode
- Constructor
Creates a new TreeSortMode from a JavaFX one.
- Since
8.0
- Companion
- object
Object Companion for scalafx.scene.control.SortEvent
Object Companion for scalafx.scene.control.SortEvent
- Since
8.0
- Companion
- class
Wraps a JavaFX TreeTableCell.
Wraps a JavaFX TreeTableCell.
- Type Params
- S
The type of the item contained within the Cell.
- T
The type of the item contained within the Cell.
- Value Params
- delegate
A JavaFX TreeTableCell to be wrapped. Its defaul value is a new JavaFX TreeTableCell.
- Constructor
Creates a new TreeTableCell from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TreeTableColumn
Object companion for scalafx.scene.control.TreeTableColumn
- Companion
- class
- Type Params
- S
The type of the TreeTableView generic type (i.e. S == TreeTableView
)- T
The type of the content in all cells in this TreeTableColumn.
- Value Params
- delegate
A JavaFX TreeTableColumn to be wrapped. Its default value is a new JavaFX TreeTableColumn.
- Constructor
Creates a new TreeTableColumn from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TreeTablePosition.
Object companion for scalafx.scene.control.TreeTablePosition.
- Since
8.0
- Companion
- class
Wraps a JavaFX TreeTablePosition.
Wraps a JavaFX TreeTablePosition.
- Type Params
- S
The type of the TreeItem instances contained within the TreeTableView.
- T
The type of the items contained within the TreeTableColumn.
- Value Params
- delegate
A JavaFX TreeTablePosition to be wrapped. Its defaul value is a new JavaFX TreeTablePosition.
- Constructor
Creates a new TreeTablePosition from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TreeTableRow.
Object companion for scalafx.scene.control.TreeTableRow.
- Since
8.0
- Companion
- class
Wraps a JavaFX TreeTableRow.
Wraps a JavaFX TreeTableRow.
- Type Params
- T
The type of the item contained within the Cell.
- Value Params
- delegate
A JavaFX TreeTableRow to be wrapped. Its defaul value is a new JavaFX TreeTableRow.
- Constructor
Creates a new TreeTableRow from a JavaFX one.
- Since
8.0
- Companion
- object
Object companion for scalafx.scene.control.TreeTableView
Object companion for scalafx.scene.control.TreeTableView
- Companion
- class
The TreeTableView
control is designed to visualize an unlimited number of rows of data, broken out into columns.
The TreeTableView
control is conceptually very similar to the TreeView
and TableView
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 the TreeTableView
uses the same TreeItem
API as TreeView
, and that you therefore are required
to simply set the root node in the TreeTableView
. Similarly, the TreeTableView
control makes use of the same
TableColumn
-based approach that the TableView
control uses, except instead of using the TableView
-specific
TableColumn
class, you should instead use the TreeTableView
-specific TreeTableColumn
class instead.
The TreeTableView
control is designed to visualize an unlimited number of rows of data, broken out into columns.
The TreeTableView
control is conceptually very similar to the TreeView
and TableView
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 the TreeTableView
uses the same TreeItem
API as TreeView
, and that you therefore are required
to simply set the root node in the TreeTableView
. Similarly, the TreeTableView
control makes use of the same
TableColumn
-based approach that the TableView
control uses, except instead of using the TableView
-specific
TableColumn
class, you should instead use the TreeTableView
-specific TreeTableColumn
class instead.
Wraps a JavaFX http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TreeTableView.TreeTableView.html
- Type Params
- S
The type of the TreeItem instances used in this TreeTableView.
- Value Params
- delegate
A JavaFX TreeTableView to be wrapped. Its default value is a new JavaFX TreeTableView.
- Constructor
Creates a new TreeTableView from a JavaFX one.
- Since
8.0
- Companion
- object
Deprecated classlikes
- Companion
- class
- Deprecated
- Companion
- object
- Deprecated