public final class ButtonType extends Object
Dialog API (より具体的にはDialogPane API)の一部として使用します。 このクラスの使用方法の詳細は、DialogPaneクラスのjavadocを参照してください。 Alert、Dialog、DialogPane| 修飾子と型 | フィールドと説明 |
|---|---|
static ButtonType |
APPLY
"Apply"を表示し、
ButtonBar.ButtonData.APPLYのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
CANCEL
"Cancel"を表示し、
ButtonBar.ButtonData.CANCEL_CLOSEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
CLOSE
"Close"を表示し、
ButtonBar.ButtonData.CANCEL_CLOSEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
FINISH
"Finish"を表示し、
ButtonBar.ButtonData.FINISHのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
NEXT
"Next"を表示し、
ButtonBar.ButtonData.NEXT_FORWARDのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
NO
"No"を表示し、
ButtonBar.ButtonData.NOのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
OK
"OK"を表示し、
ButtonBar.ButtonData.OK_DONEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
PREVIOUS
"Previous"を表示し、
ButtonBar.ButtonData.BACK_PREVIOUSのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
static ButtonType |
YES
"Yes"を表示し、
ButtonBar.ButtonData.YESのButtonBar.ButtonDataを持つ、事前定義されたButtonType。 |
| コンストラクタと説明 |
|---|
ButtonType(String text)
指定されたテキストでButtonTypeインスタンスを作成し、ButtonDataを
ButtonBar.ButtonData.OTHERとして設定します。 |
ButtonType(String text, ButtonBar.ButtonData buttonData)
指定されたテキストと、ButtonDataを指定どおりに設定して、ButtonTypeインスタンスを作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
ButtonBar.ButtonData |
getButtonData()
コンストラクタ内のこのButtonTypeに指定されたButtonDataを返します。
|
String |
getText()
コンストラクタ内のこのButtonTypeに指定されたテキストを返します。
|
String |
toString() |
public static final ButtonType APPLY
ButtonBar.ButtonData.APPLYのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType OK
ButtonBar.ButtonData.OK_DONEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType CANCEL
ButtonBar.ButtonData.CANCEL_CLOSEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType CLOSE
ButtonBar.ButtonData.CANCEL_CLOSEのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType YES
ButtonBar.ButtonData.YESのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType NO
ButtonBar.ButtonData.NOのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType FINISH
ButtonBar.ButtonData.FINISHのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType NEXT
ButtonBar.ButtonData.NEXT_FORWARDのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public static final ButtonType PREVIOUS
ButtonBar.ButtonData.BACK_PREVIOUSのButtonBar.ButtonDataを持つ、事前定義されたButtonType。public ButtonType(String text)
ButtonBar.ButtonData.OTHERとして設定します。text - Buttonなどのコントロールのテキスト・プロパティに表示する文字列。public ButtonType(String text, ButtonBar.ButtonData buttonData)
text - Buttonなどのコントロールのテキスト・プロパティに表示する文字列。buttonData - このButtonTypeから作成するボタンのタイプ。public final ButtonBar.ButtonData getButtonData()
public final String getText()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.