|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicMenuUI.MouseInputHandler
protected class BasicMenuUI.MouseInputHandler
實例化後供選單項使用,用於處理鼠標事件的當前選單選擇。MouseInputHandler 處理所有鼠標事件,將其轉發到 MenuSelectionManager 的共享實例。
此類別是受保護的,其他外觀可以為其創建子類別以實作它們自己的鼠標處理行為。所有覆寫方法都應該調用父方法以便正確選擇選單。
MenuSelectionManager| 建構子摘要 | |
|---|---|
protected |
BasicMenuUI.MouseInputHandler()
|
| 方法摘要 | |
|---|---|
void |
mouseClicked(MouseEvent e)
鼠標按鍵在元件上單擊(按下並釋放)時調用。 |
void |
mouseDragged(MouseEvent e)
在選單上按下鼠標按鍵並隨後拖動鼠標時調用。 |
void |
mouseEntered(MouseEvent e)
在指針進入選單時調用。 |
void |
mouseExited(MouseEvent e)
鼠標離開元件時調用。 |
void |
mouseMoved(MouseEvent e)
鼠標鼠標移動到元件上但無按鍵按下時調用。 |
void |
mousePressed(MouseEvent e)
在選單上單擊鼠標時調用。 |
void |
mouseReleased(MouseEvent e)
在選單上釋放鼠標時調用。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
protected BasicMenuUI.MouseInputHandler()
| 方法詳細資訊 |
|---|
public void mouseClicked(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseClickedpublic void mousePressed(MouseEvent e)
MouseListener 中的 mousePressede - 鼠標事件public void mouseReleased(MouseEvent e)
MouseListener 中的 mouseReleasede - 鼠標事件public void mouseEntered(MouseEvent e)
MouseListener 中的 mouseEnterede - 鼠標事件;不使用public void mouseExited(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseExitedpublic void mouseDragged(MouseEvent e)
MouseMotionListener 中的 mouseDraggede - 鼠標事件MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)public void mouseMoved(MouseEvent e)
MouseMotionListener 複製的描述
MouseMotionListener 中的 mouseMoved
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。