クラス
javafx.scene.control.ButtonTypeの使用
-
ButtonTypeを使用するパッケージ パッケージ 説明 javafx.scene.control JavaFXユーザー・インタフェース・コントロール(UIコントロールまたは単純なコントロール)は、特に多くの異なるアプリケーション・コンテキストでの再利用に適しているJavaFXシーングラフの特化されたノードです。 -
-
javafx.scene.controlのButtonTypeの使用
ButtonType型の引数を持つ型を返すjavafx.scene.controlのメソッド 修飾子と型 メソッド 説明 ObservableList<ButtonType>
Alert. getButtonTypes()
このAlertインスタンス内部で現在設定されているすべてのButtonType
インスタンスのObservableList
を返します。ObservableList<ButtonType>
DialogPane. getButtonTypes()
(DialogPane.createButtonBar()
メソッドを介して作成された)ダイアログ・ボタン・バー領域に使用されるボタン・タイプの監視可能なリスト。Callback<ButtonType,R>
Dialog. getResultConverter()
プロパティresultConverterの値を取得します。ObjectProperty<Callback<ButtonType,R>>
Dialog. resultConverterProperty()
ユーザーがクリックしたButtonType
を、result
プロパティを介して返すことができる結果に変換するためのAPI。ButtonType型のパラメータを持つjavafx.scene.controlのメソッド 修飾子と型 メソッド 説明 protected Node
DialogPane. createButton(ButtonType buttonType)
このメソッドは、(DialogPane.createButtonBar()
メソッドを介して作成した) DialogPaneボタン領域(一般にはButtonBar
のインスタンス)に後から挿入されるカスタム・ボタンを作成するためにサブクラスによってオーバーライドできます。Node
DialogPane. lookupButton(ButtonType buttonType)
このメソッドは、開発者が指定されたButtonType
の実際のNodeを取得するための方法を提供します(これがbutton types
リストに含まれている場合)。ButtonType型の型引数を持つjavafx.scene.controlのメソッド・パラメータ 修飾子と型 メソッド 説明 void
Dialog. setResultConverter(Callback<ButtonType,R> value)
プロパティresultConverterの値を設定します。ButtonType型のパラメータを持つjavafx.scene.controlのコンストラクタ コンストラクタ 説明 Alert(Alert.AlertType alertType, String contentText, ButtonType... buttons)
指定されたcontentText、ButtonTypesおよびAlertTypeでアラートを作成します(どれが最も適しているかを調べるには、Alert.AlertType
の説明を参照してください)。
-