クラス
javax.swing.MenuSelectionManagerの使用
-
MenuSelectionManagerを使用しているパッケージ パッケージ 説明 javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する軽量(Java共通言語)コンポーネントのセットを提供します。javax.swing.event Swingコンポーネントによってトリガーされるイベントを提供します。javax.swing.plaf.basic 基本ルック・アンド・フィールに従って構築されたユーザー・インタフェース・オブジェクトを提供します。 -
-
javax.swingでのMenuSelectionManagerの使用
MenuSelectionManagerを返すjavax.swing内のメソッド 修飾子と型 メソッド 説明 static MenuSelectionManager
MenuSelectionManager. defaultManager()
デフォルトのメニュー選択マネージャを返します。MenuSelectionManager型のパラメータを持つjavax.swing内のメソッド 修飾子と型 メソッド 説明 void
JMenuBar. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
MenuElement
として実装されますが、処理は行いません。void
JMenuItem. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
MenuSelectionManager
から転送されるキー・イベントを処理し、必要に応じてMenuSelectionManager
のAPIを使用して、メニュー選択を変更します。void
JPopupMenu. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
MenuSelectionManager
から転送されるキー・イベントを処理し、必要に応じてMenuSelectionManager
のAPIを使用して、メニュー選択を変更します。void
MenuElement. processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
キー・イベントを処理します。void
JMenuBar. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
MenuElement
として実装されますが、処理は行いません。void
JMenuItem. processMouseEvent(MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
MenuSelectionManager
から転送されるマウス・イベントを処理します。必要に応じてMenuSelectionManager
のAPIを使用して、メニュー選択を変更します。void
JPopupMenu. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
このメソッドはMenuElement
インタフェースに適合するために必要ですが、実装されていません。void
MenuElement. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
マウス・イベントを処理します。 -
javax.swing.eventでのMenuSelectionManagerの使用
MenuSelectionManagerを返すjavax.swing.event内のメソッド 修飾子と型 メソッド 説明 MenuSelectionManager
MenuDragMouseEvent. getMenuSelectionManager()
現在のメニュー選択マネージャを返します。MenuSelectionManager
MenuKeyEvent. getMenuSelectionManager()
現在のメニュー選択マネージャを返します。MenuSelectionManager型のパラメータを持つjavax.swing.event内のコンストラクタ コンストラクタ 説明 MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)
MenuDragMouseEventオブジェクトを構築します。MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)
MenuDragMouseEventオブジェクトを構築します。MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m)
MenuKeyEventオブジェクトを構築します。 -
javax.swing.plaf.basicでのMenuSelectionManagerの使用
MenuSelectionManager型のパラメータを持つjavax.swing.plaf.basic内のメソッド 修飾子と型 メソッド 説明 protected void
BasicMenuItemUI. doClick(MenuSelectionManager msm)
メニュー項目の起動時に、このメソッドを呼び出します。void
BasicCheckBoxMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
マウス・イベントが発生したときに呼び出されます。void
BasicRadioButtonMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
マウス・イベントが発生したときに呼び出されます。
-