|
Java プラットフォーム 1.2 |
|||||||||
前 次 | フレームあり フレームなし |
KeyStroke を使用するパッケージ | |
javax.swing | 可能な限りすべてのプラットフォームで同じように機能する「軽量」コンポーネント (Java 言語全体で共通) のセットを提供します。 |
javax.swing.plaf.basic | Basic 仕様 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 |
javax.swing.text | 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 |
javax.swing における KeyStroke の使用方法 |
KeyStroke を返す javax.swing におけるメソッド | |
KeyStroke[] |
JComponent.getRegisteredKeyStrokes()
登録されているアクションを呼び出す KeyStroke を返します。 |
KeyStroke |
JMenuItem.getAccelerator()
メニュー項目のアクセラレータとして機能する KeyStroke を返します。 |
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar)
キーが押されたときにアクティブになるキーストロークの共有インスタンスを返します (つまり、KeyEvent.KEY_TYPED イベントの KeyStroke)。 |
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar,
boolean onKeyRelease)
推奨されません。 getKeyStroke(char) を使用してください。 |
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode,
int modifiers,
boolean onKeyRelease)
押されたとき、または解放されたときにキーがアクティブになるかどうかを指定して、指定された数値キーコードおよび修飾子のセットでキーストロークの共有インスタンスを返します。 |
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode,
int modifiers)
指定された char コードおよび修飾子のセットでキーストロークの共有インスタンスを返します。 |
static KeyStroke |
KeyStroke.getKeyStrokeForEvent(KeyEvent anEvent)
イベントからキーストロークを返します。 |
static KeyStroke |
KeyStroke.getKeyStroke(String representation)
文字列表現と一致するキーストロークの共有インスタンスを返します。 |
型 KeyStroke のパラメータを持つ javax.swing におけるメソッド | |
void |
JComponent.registerKeyboardAction(ActionListener anAction,
String aCommand,
KeyStroke aKeyStroke,
int aCondition)
新しいキーボードアクションを登録します。 |
void |
JComponent.registerKeyboardAction(ActionListener anAction,
KeyStroke aKeyStroke,
int aCondition)
null コマンドで registerKeyboardAction(ActionListener,String,KeyStroke,condition) を呼び出します。 |
void |
JComponent.unregisterKeyboardAction(KeyStroke aKeyStroke)
キーボードアクションの登録を解除します。 |
int |
JComponent.getConditionForKeyStroke(KeyStroke aKeyStroke)
登録されているアクションが、指定されたキーストロークに反応して発生するかどうかを決める条件を返します。 |
ActionListener |
JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
指定されたキーストロークに対して登録されているアクションを実行するオブジェクトを返します。 |
void |
JMenuItem.setAccelerator(KeyStroke keyStroke)
メニュー階層を移動することなくメニュー項目のアクションリスナーを呼び出すキーの組み合わせを設定します。 |
void |
JMenu.setAccelerator(KeyStroke keyStroke)
setAccelerator() は JMenu には定義されていません。 |
javax.swing.plaf.basic における KeyStroke の使用方法 |
KeyStroke として宣言される javax.swing.plaf.basic におけるフィールド | |
protected KeyStroke |
BasicDesktopPaneUI.minimizeKey
|
protected KeyStroke |
BasicDesktopPaneUI.maximizeKey
|
protected KeyStroke |
BasicDesktopPaneUI.closeKey
|
protected KeyStroke |
BasicDesktopPaneUI.navigateKey
|
protected KeyStroke |
BasicDesktopPaneUI.navigateKey2
|
protected KeyStroke |
BasicTabbedPaneUI.upKey
|
protected KeyStroke |
BasicTabbedPaneUI.downKey
|
protected KeyStroke |
BasicTabbedPaneUI.leftKey
|
protected KeyStroke |
BasicTabbedPaneUI.rightKey
|
protected KeyStroke |
BasicToolBarUI.upKey
|
protected KeyStroke |
BasicToolBarUI.downKey
|
protected KeyStroke |
BasicToolBarUI.leftKey
|
protected KeyStroke |
BasicToolBarUI.rightKey
|
protected KeyStroke |
BasicSplitPaneUI.upKey
JSplitPane が処理するキーストロークです。 |
protected KeyStroke |
BasicSplitPaneUI.downKey
|
protected KeyStroke |
BasicSplitPaneUI.leftKey
|
protected KeyStroke |
BasicSplitPaneUI.rightKey
|
protected KeyStroke |
BasicSplitPaneUI.homeKey
|
protected KeyStroke |
BasicSplitPaneUI.endKey
|
protected KeyStroke |
BasicSplitPaneUI.dividerResizeToggleKey
|
protected KeyStroke |
BasicInternalFrameUI.openMenuKey
|
javax.swing.text における KeyStroke の使用方法 |
KeyStroke として宣言される javax.swing.text におけるフィールド | |
KeyStroke |
JTextComponent.KeyBinding.key
キーです。 |
KeyStroke を返す javax.swing.text におけるメソッド | |
KeyStroke[] |
Keymap.getBoundKeyStrokes()
特定のアクションに割り当てられているこのマップ内のキーストロークをすべて取得します。 |
KeyStroke[] |
Keymap.getKeyStrokesForAction(Action a)
指定されたアクションを発生させるキーストロークを取得します。 |
型 KeyStroke のパラメータを持つ javax.swing.text におけるメソッド | |
Action |
Keymap.getAction(KeyStroke key)
指定されたシンボリックイベントシーケンスに適切なアクションを取得します。 |
boolean |
Keymap.isLocallyDefined(KeyStroke key)
指定されたキーシーケンスがローカルに定義されているかどうかを判定します。 |
void |
Keymap.addActionForKeyStroke(KeyStroke key,
Action a)
キーマップに割り当てを追加します。 |
void |
Keymap.removeKeyStrokeBinding(KeyStroke keys)
キーマップから割り当てを削除します。 |
型 KeyStroke のパラメータを持つ javax.swing.text におけるコンストラクタ | |
JTextComponent.KeyBinding.JTextComponent.KeyBinding(KeyStroke key,
String actionName)
新しいキー割り当てを作成します。 |
|
Java プラットフォーム 1.2 |
|||||||||
前 次 | フレームあり フレームなし |