クラス java.awt.event.FocusEvent.Causeの
使用
-
FocusEvent.Causeを使用するパッケージ パッケージ 説明 java.awt ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。java.awt.event AWTコンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。 -
-
java.awtでのFocusEvent.Causeの使用
型FocusEvent.Causeのパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 protected boolean
Component. requestFocus(boolean temporary, FocusEvent.Cause cause)
cause
の理由により、このComponent
が入力フォーカスを取得し、このComponent
トップレベル祖先がフォーカスされたWindow
になることがリクエストされます。void
Component. requestFocus(FocusEvent.Cause cause)
cause
の理由により、このComponentが入力フォーカスを取得し、このComponentのトップレベル祖先がフォーカスされたWindowになることをリクエストします。boolean
Component. requestFocusInWindow(FocusEvent.Cause cause)
このコンポーネントのトップレベル祖先が既にフォーカスされている場合、cause
の理由でこのコンポーネントが入力フォーカスを取得するようにリクエストします。 -
java.awt.eventでのFocusEvent.Causeの使用
FocusEvent.Causeを戻すjava.awt.eventのメソッド 修飾子と型 メソッド 説明 FocusEvent.Cause
FocusEvent. getCause()
イベントの原因を返します。static FocusEvent.Cause
FocusEvent.Cause. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static FocusEvent.Cause[]
FocusEvent.Cause. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。型FocusEvent.Causeのパラメータを持つjava.awt.eventのコンストラクタ コンストラクタ 説明 FocusEvent(Component source, int id, boolean temporary, Component opposite, FocusEvent.Cause cause)
Component
と反対の、指定された一時状態を持つFocusEvent
オブジェクトを作成します。 -
javax.swingでのFocusEvent.Causeの使用
型FocusEvent.Causeのパラメータを持つjavax.swingのメソッド 修飾子と型 メソッド 説明 void
JToggleButton. requestFocus(FocusEvent.Cause cause)
このトグル・ボタンがButtonGroup
のメンバーであり、選択され、フォーカスの所有者になることができるトグル・ボタンがあり、フォーカスの原因の引数はウィンドウのアクティブ化または任意の方向のフォーカス・トラバーサル・アクションを表します。メソッドの実行結果は次のとおりです。グループ内で選択されているトグル・ボタンでComponent.requestFocus(FocusEvent.Cause)
を呼び出します。boolean
JToggleButton. requestFocusInWindow(FocusEvent.Cause cause)
このトグル・ボタンがButtonGroup
のメンバーであり、選択され、フォーカスの所有者になることができるトグル・ボタンがあり、フォーカスの原因の引数はウィンドウのアクティブ化または任意の方向のフォーカス・トラバーサル・アクションを表します。メソッドの実行結果は次のとおりです。グループ内で選択されているトグル・ボタンでComponent.requestFocusInWindow(FocusEvent.Cause)
を呼び出します。
-