| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static ButtonType |
ButtonType.APPLY
A pre-defined
ButtonType that displays "Apply" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.APPLY. |
static ButtonType |
ButtonType.CANCEL
A pre-defined
ButtonType that displays "Cancel" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.CANCEL_CLOSE. |
static ButtonType |
ButtonType.CLOSE
A pre-defined
ButtonType that displays "Close" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.CANCEL_CLOSE. |
static ButtonType |
ButtonType.FINISH
A pre-defined
ButtonType that displays "Finish" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.FINISH. |
static ButtonType |
ButtonType.NEXT
A pre-defined
ButtonType that displays "Next" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.NEXT_FORWARD. |
static ButtonType |
ButtonType.NO
A pre-defined
ButtonType that displays "No" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.NO. |
static ButtonType |
ButtonType.OK
A pre-defined
ButtonType that displays "OK" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.OK_DONE. |
static ButtonType |
ButtonType.PREVIOUS
A pre-defined
ButtonType that displays "Previous" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.BACK_PREVIOUS. |
static ButtonType |
ButtonType.YES
A pre-defined
ButtonType that displays "Yes" and has a
ButtonBar.ButtonData of ButtonBar.ButtonData.YES. |
| Modifier and Type | Method and Description |
|---|---|
ObservableList<ButtonType> |
Alert.getButtonTypes()
Returns an
ObservableList of all ButtonType 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 the
DialogPane.createButtonBar() method). |
Callback<ButtonType,R> |
Dialog.getResultConverter()
Gets the value of the property resultConverter.
|
ObjectProperty<Callback<ButtonType,R>> |
Dialog.resultConverterProperty()
API to convert the
ButtonType that the user clicked on into a
result that can be returned via the result
property. |
| Modifier and Type | Method and 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
the
DialogPane.createButtonBar() method, but mostly commonly it is an instance
of ButtonBar. |
Node |
DialogPane.lookupButton(ButtonType buttonType)
This method provides a way in which developers may retrieve the actual
Node for a given
ButtonType (assuming it is part of the
button types list). |
| Modifier and Type | Method and Description |
|---|---|
void |
Dialog.setResultConverter(Callback<ButtonType,R> value)
Sets the value of the property resultConverter.
|
| Constructor and Description |
|---|
Alert(Alert.AlertType alertType,
String contentText,
ButtonType... buttons)
Creates an alert with the given contentText, ButtonTypes, and AlertType
(refer to the
Alert.AlertType documentation for clarification over which
one is most appropriate). |
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.