| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface AccessibleKeyBinding
AccessibleKeyBinding インタフェースは、オブジェクトの選択に使用できるキーボードニーモニックまたはキーボードショートカットなどのキーボードバインディングを持つすべてのオブジェクトによってサポートされる必要があります。このインタフェースは、このオブジェクトのために存在するキーバインディングを決定するための標準の機構をユーザー補助機能に提供します。このようなキーバインディングを持つオブジェクトはすべてこのインタフェースをサポートする必要があります。アプリケーションは、オブジェクトの AccessibleContext (Accessible を参照) を取得してから、AccessibleContext#getAccessibleKeyBinding メソッドを呼び出すと、オブジェクトが AccessibleKeyBinding インタフェースをサポートするかどうかを判定できます。戻り値が null でなければ、そのオブジェクトはこのインタフェースをサポートしています。
Accessible, 
Accessible.getAccessibleContext(), 
AccessibleContext, 
AccessibleContext#getAccessibleKeyBinding| メソッドの概要 | |
|---|---|
|  Object | getAccessibleKeyBinding(int i)このオブジェクトのキーバインディングを返します。 | 
|  int | getAccessibleKeyBindingCount()このオブジェクトのキーバインディングの数を返します。 | 
| メソッドの詳細 | 
|---|
int getAccessibleKeyBindingCount()
Object getAccessibleKeyBinding(int i)
Component c = AccessibleContext ac = c.getAccessibleContext(); AccessibleKeyBinding akb = ac.getAccessibleKeyBinding(); for (int i = 0; i < akb.getAccessibleKeyBindingCount(); i++) { Object o = akb.getAccessibleKeyBinding(i); if (o instanceof javax.swing.KeyStroke) { javax.swing.KeyStroke keyStroke = (javax.swing.KeyStroke)o; } }  
i - キーバインディングのゼロから始まるインデックス
getAccessibleKeyBindingCount()| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。