クラス
javax.swing.InputMapの使用
-
InputMapを使用しているパッケージ パッケージ 説明 javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する軽量(Java共通言語)コンポーネントのセットを提供します。javax.swing.plaf Swingがプラグイン可能なルック・アンド・フィール機能を提供するために使用する、1つのインタフェースおよび多くの抽象クラスを提供します。 -
-
javax.swingでのInputMapの使用
javax.swing内のInputMapのサブクラス 修飾子と型 クラス 説明 class
ComponentInputMap
ComponentInputMap
は、特定のJComponent
に関連付けられているInputMap
です。InputMapを返すjavax.swing内のメソッド 修飾子と型 メソッド 説明 InputMap
JComponent. getInputMap()
コンポーネントがフォーカスを取得したときに使用するInputMap
を返します。InputMap
JComponent. getInputMap(int condition)
condition
で使用されているInputMap
を返します。InputMap
InputMap. getParent()
このInputMap
の親を取得します。static InputMap
SwingUtilities. getUIInputMap(JComponent component, int condition)
UIがcomponent
のcondition
に指定したInputMapを返します。static InputMap
LookAndFeel. makeInputMap(Object[] keys)
keys
からInputMapUIResource
を作成します。InputMap型のパラメータを持つjavax.swing内のメソッド 修飾子と型 メソッド 説明 static void
LookAndFeel. loadKeyBindings(InputMap retMap, Object[] keys)
指定されたバインディングでInputMap
を生成します。static void
SwingUtilities. replaceUIInputMap(JComponent component, int type, InputMap uiInputMap)
component
のUI InputMapをuiInputMap
に変更する簡易メソッドです。void
JComponent. setInputMap(int condition, InputMap map)
条件condition
で使用するInputMap
をmap
に設定します。void
ComponentInputMap. setParent(InputMap map)
親を設定します。親は、このComponentInputMap
と同じコンポーネントに関連付けられたComponentInputMap
である必要があります。void
InputMap. setParent(InputMap map)
このInputMap
の親を設定します。 -
javax.swing.plafでのInputMapの使用
javax.swing.plaf内のInputMapのサブクラス 修飾子と型 クラス 説明 class
ComponentInputMapUIResource
javax.swing.ComponentInputMapのサブクラスであり、UIResourceインタフェースを実装しています。class
InputMapUIResource
javax.swing.InputMapのサブクラスであり、UIResourceインタフェースを実装しています。
-