|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicListUI.MouseInputHandler
public class BasicListUI.MouseInputHandler
鼠標輸入和 JList 的焦點處理。在 installUI() 時將此類別的實例添加到適當的 java.awt.Component 列表中。注意,利用 JComponent KeyboardAction 處理鍵盤輸入,請參閱 installKeyboardActions()。
警告:此類別的序列化物件將與以後的 Swing 版本不相容。當前的序列化支持適用於短期存儲或運行相同 Swing 版本的應用程序之間的 RMI。從 1.4 版本開始,已在 java.beans 套件中添加了支持所有 JavaBeansTM 長期存儲的功能。請參見 XMLEncoder。
BasicListUI.createMouseInputListener(),
BasicListUI.installKeyboardActions(),
BasicListUI.installUI(javax.swing.JComponent)| 建構子摘要 | |
|---|---|
BasicListUI.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 |
| 建構子詳細資訊 |
|---|
public BasicListUI.MouseInputHandler()
| 方法詳細資訊 |
|---|
public void mouseClicked(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseClickedpublic void mouseEntered(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseEnteredpublic void mouseExited(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseExitedpublic void mousePressed(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mousePressedpublic void mouseDragged(MouseEvent e)
MouseMotionListener 複製的描述MOUSE_DRAGGED 事件被連續地傳遞到發起該拖動的元件(而不管鼠標位置是否處於該元件的邊界內)。
由於拖放實作是與平臺相關的,所以在本機拖放操作期間可能不傳遞 MOUSE_DRAGGED 事件。
MouseMotionListener 中的 mouseDraggedpublic void mouseMoved(MouseEvent e)
MouseMotionListener 複製的描述
MouseMotionListener 中的 mouseMovedpublic void mouseReleased(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseReleased
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。