public final class ButtonType extends Object
Dialog
API (より具体的にはDialogPane
API)の一部として使用します。このクラスの使用方法の詳細は、DialogPane
クラスのjavadocを参照してください。Alert
、Dialog
、DialogPane
修飾子と型 | フィールドと説明 |
---|---|
static ButtonType |
APPLY
|
static ButtonType |
CANCEL
|
static ButtonType |
CLOSE
|
static ButtonType |
FINISH
|
static ButtonType |
NEXT
|
static ButtonType |
NO
|
static ButtonType |
OK
|
static ButtonType |
PREVIOUS
|
static ButtonType |
YES
|
コンストラクタと説明 |
---|
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
public static final ButtonType OK
public static final ButtonType CANCEL
public static final ButtonType CLOSE
public static final ButtonType YES
public static final ButtonType NO
public static final ButtonType FINISH
public static final ButtonType NEXT
public static final ButtonType PREVIOUS
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.