Uses of Class
javafx.scene.control.ButtonType
Packages that use 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
Fields in javafx.scene.control declared as ButtonTypeModifier and TypeFieldDescriptionstatic final ButtonTypeButtonType.APPLYA pre-definedButtonTypethat displays "Apply" and has aButtonBar.ButtonDataofButtonBar.ButtonData.APPLY.static final ButtonTypeButtonType.CANCELA pre-definedButtonTypethat displays "Cancel" and has aButtonBar.ButtonDataofButtonBar.ButtonData.CANCEL_CLOSE.static final ButtonTypeButtonType.CLOSEA pre-definedButtonTypethat displays "Close" and has aButtonBar.ButtonDataofButtonBar.ButtonData.CANCEL_CLOSE.static final ButtonTypeButtonType.FINISHA pre-definedButtonTypethat displays "Finish" and has aButtonBar.ButtonDataofButtonBar.ButtonData.FINISH.static final ButtonTypeButtonType.NEXTA pre-definedButtonTypethat displays "Next" and has aButtonBar.ButtonDataofButtonBar.ButtonData.NEXT_FORWARD.static final ButtonTypeButtonType.NOA pre-definedButtonTypethat displays "No" and has aButtonBar.ButtonDataofButtonBar.ButtonData.NO.static final ButtonTypeButtonType.OKA pre-definedButtonTypethat displays "OK" and has aButtonBar.ButtonDataofButtonBar.ButtonData.OK_DONE.static final ButtonTypeButtonType.PREVIOUSA pre-definedButtonTypethat displays "Previous" and has aButtonBar.ButtonDataofButtonBar.ButtonData.BACK_PREVIOUS.static final ButtonTypeButtonType.YESA pre-definedButtonTypethat displays "Yes" and has aButtonBar.ButtonDataofButtonBar.ButtonData.YES.Methods in javafx.scene.control that return types with arguments of type ButtonTypeModifier and TypeMethodDescriptionfinal ObservableList<ButtonType> Alert.getButtonTypes()Returns anObservableListof allButtonTypeinstances 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 theresultConverterproperty.final ObjectProperty<Callback<ButtonType, R>> Dialog.resultConverterProperty()API to convert theButtonTypethat the user clicked on into a result that can be returned via theresultproperty.Methods in javafx.scene.control with parameters of type ButtonTypeModifier and TypeMethodDescriptionprotected NodeDialogPane.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 NodeDialogPane.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 typeslist).Method parameters in javafx.scene.control with type arguments of type ButtonTypeModifier and TypeMethodDescriptionfinal voidDialog.setResultConverter(Callback<ButtonType, R> value) Sets the value of theresultConverterproperty.Constructors in javafx.scene.control with parameters of type ButtonTypeModifierConstructorDescriptionAlert(Alert.AlertType alertType, String contentText, ButtonType... buttons) Creates an alert with the given contentText, ButtonTypes, and AlertType (refer to theAlert.AlertTypedocumentation for clarification over which one is most appropriate).