Uses of Class
javafx.scene.control.ButtonType
Package
Description
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
Modifier and TypeFieldDescriptionstatic final ButtonType
ButtonType.APPLY
A pre-definedButtonType
that displays "Apply" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.APPLY
.static final ButtonType
ButtonType.CANCEL
A pre-definedButtonType
that displays "Cancel" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.CANCEL_CLOSE
.static final ButtonType
ButtonType.CLOSE
A pre-definedButtonType
that displays "Close" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.CANCEL_CLOSE
.static final ButtonType
ButtonType.FINISH
A pre-definedButtonType
that displays "Finish" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.FINISH
.static final ButtonType
ButtonType.NEXT
A pre-definedButtonType
that displays "Next" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.NEXT_FORWARD
.static final ButtonType
ButtonType.NO
A pre-definedButtonType
that displays "No" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.NO
.static final ButtonType
ButtonType.OK
A pre-definedButtonType
that displays "OK" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.OK_DONE
.static final ButtonType
ButtonType.PREVIOUS
A pre-definedButtonType
that displays "Previous" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.BACK_PREVIOUS
.static final ButtonType
ButtonType.YES
A pre-definedButtonType
that displays "Yes" and has aButtonBar.ButtonData
ofButtonBar.ButtonData.YES
.Modifier and TypeMethodDescriptionfinal ObservableList<ButtonType>
Alert.getButtonTypes()
Returns anObservableList
of allButtonType
instances that are currently set inside this Alert instance.final ObservableList<ButtonType>
DialogPane.getButtonTypes()
Observable list of button types used for the dialog button bar area (created via theDialogPane.createButtonBar()
method).final Callback<ButtonType,
R> Dialog.getResultConverter()
Gets the value of the property resultConverter.final 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.Modifier and TypeMethodDescriptionprotected 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
.final 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).Modifier and TypeMethodDescriptionfinal void
Dialog.setResultConverter
(Callback<ButtonType, R> value) Sets the value of the property resultConverter.ModifierConstructorDescriptionAlert
(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).