Uses of Class
javafx.scene.control.ButtonType
-
Packages that use ButtonType Package Description javafx.scene.control The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts. -
-
Uses of ButtonType in javafx.scene.control
Fields in javafx.scene.control declared as ButtonType Modifier and Type Field Description static ButtonType
ButtonType. APPLY
A pre-definedButtonType
that displays "Apply" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.APPLY
.static ButtonType
ButtonType. CANCEL
A pre-definedButtonType
that displays "Cancel" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.CANCEL_CLOSE
.static ButtonType
ButtonType. CLOSE
A pre-definedButtonType
that displays "Close" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.CANCEL_CLOSE
.static ButtonType
ButtonType. FINISH
A pre-definedButtonType
that displays "Finish" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.FINISH
.static ButtonType
ButtonType. NEXT
A pre-definedButtonType
that displays "Next" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.NEXT_FORWARD
.static ButtonType
ButtonType. NO
A pre-definedButtonType
that displays "No" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.NO
.static ButtonType
ButtonType. OK
A pre-definedButtonType
that displays "OK" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.OK_DONE
.static ButtonType
ButtonType. PREVIOUS
A pre-definedButtonType
that displays "Previous" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.BACK_PREVIOUS
.static ButtonType
ButtonType. YES
A pre-definedButtonType
that displays "Yes" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.YES
.Methods in javafx.scene.control that return types with arguments of type ButtonType Modifier and Type Method Description ObservableList<ButtonType>
Alert. getButtonTypes()
Returns anObservableList
of allButtonType
instances that are currently set inside this Alert instance.ObservableList<ButtonType>
DialogPane. getButtonTypes()
Observable list of button types used for the dialog button bar area (created via theDialogPane.createButtonBar()
method).Callback<ButtonType,R>
Dialog. getResultConverter()
Gets the value of the property resultConverter.ObjectProperty<Callback<ButtonType,R>>
Dialog. resultConverterProperty()
API to convert theButtonType
that the user clicked on into a result that can be returned via theresult
property.Methods in javafx.scene.control with parameters of type ButtonType Modifier and Type Method Description protected Node
DialogPane. createButton(ButtonType buttonType)
This method can be overridden by subclasses to create a custom button that will subsequently inserted into the DialogPane button area (created via theDialogPane.createButtonBar()
method, but mostly commonly it is an instance ofButtonBar
.Node
DialogPane. lookupButton(ButtonType buttonType)
This method provides a way in which developers may retrieve the actual Node for a givenButtonType
(assuming it is part of thebutton types
list).Method parameters in javafx.scene.control with type arguments of type ButtonType Modifier and Type Method Description void
Dialog. setResultConverter(Callback<ButtonType,R> value)
Sets the value of the property resultConverter.Constructors in javafx.scene.control with parameters of type ButtonType Constructor Description Alert(Alert.AlertType alertType, String contentText, ButtonType... buttons)
Creates an alert with the given contentText, ButtonTypes, and AlertType (refer to theAlert.AlertType
documentation for clarification over which one is most appropriate).
-