Dialog API (more
specifically, the DialogPane API) to specify which buttons should be
shown to users in the dialogs. Refer to the DialogPane class javadoc
for more information on how to use this class.
Alert, Dialog, DialogPane
| Modifier and Type | Field and Description |
|---|---|
| public static final ButtonType | APPLY
A pre-defined |
| private final ButtonBar. | |
| public static final ButtonType | CANCEL
A pre-defined |
| public static final ButtonType | CLOSE
A pre-defined |
| public static final ButtonType | FINISH
A pre-defined |
| private final String | |
| public static final ButtonType | NEXT
A pre-defined |
| public static final ButtonType | NO
A pre-defined |
| public static final ButtonType | OK
A pre-defined |
| public static final ButtonType | PREVIOUS
A pre-defined |
| private final String | |
| public static final ButtonType | YES
A pre-defined |
| Access | Constructor and Description |
|---|---|
| public | ButtonType(String
The string to display in the text property of controls such
as text)Button.Creates a ButtonType instance with the given text, and the ButtonData set
as |
| public | ButtonType(String
The string to display in the text property of controls such
as text, ButtonBar.Button.The type of button that should be created from this ButtonType. buttonDataCreates a ButtonType instance with the given text, and the ButtonData set as specified. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final ButtonBar. | Returns: the ButtonData specified for this ButtonType in the constructorReturns the ButtonData specified for this ButtonType in the constructor. |
| public final String | Returns: the text specified for this ButtonType in the constructorReturns the text specified for this ButtonType in the constructor. |
| public String |
| APPLY | back to summary |
|---|---|
| public static final ButtonType APPLY A pre-defined | |
| buttonData | back to summary |
|---|---|
| private final ButtonBar. | |
| CANCEL | back to summary |
|---|---|
| public static final ButtonType CANCEL A pre-defined | |
| CLOSE | back to summary |
|---|---|
| public static final ButtonType CLOSE A pre-defined | |
| FINISH | back to summary |
|---|---|
| public static final ButtonType FINISH A pre-defined | |
| key | back to summary |
|---|---|
| private final String key | |
| NEXT | back to summary |
|---|---|
| public static final ButtonType NEXT A pre-defined | |
| NO | back to summary |
|---|---|
| public static final ButtonType NO A pre-defined | |
| OK | back to summary |
|---|---|
| public static final ButtonType OK A pre-defined | |
| PREVIOUS | back to summary |
|---|---|
| public static final ButtonType PREVIOUS A pre-defined | |
| text | back to summary |
|---|---|
| private final String text | |
| YES | back to summary |
|---|---|
| public static final ButtonType YES A pre-defined | |
| ButtonType | back to summary |
|---|---|
| public ButtonType(String text) Creates a ButtonType instance with the given text, and the ButtonData set
as | |
| ButtonType | back to summary |
|---|---|
| public ButtonType(String text, ButtonBar. Creates a ButtonType instance with the given text, and the ButtonData set as specified.
| |
| ButtonType | back to summary |
|---|---|
| private ButtonType(String key, String text, ButtonBar. Provide key or text. The other one should be null. | |
| getButtonData | back to summary |
|---|---|
| public final ButtonBar. Returns the ButtonData specified for this ButtonType in the constructor.
| |
| getText | back to summary |
|---|---|
| public final String getText() Returns the text specified for this ButtonType in the constructor.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |