|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicButtonListener
public class BasicButtonListener
按鈕偵聽器。
| 建構子摘要 | |
|---|---|
BasicButtonListener(AbstractButton b)
|
|
| 方法摘要 | |
|---|---|
protected void |
checkOpacity(AbstractButton b)
|
void |
focusGained(FocusEvent e)
元件獲得鍵盤焦點時調用。 |
void |
focusLost(FocusEvent e)
元件失去鍵盤焦點時調用。 |
void |
installKeyboardActions(JComponent c)
註冊預設鍵動作:按下空格鍵以“單擊”按鈕並註冊鍵盤助記符(如果有)。 |
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)
鼠標按鈕在元件上釋放時調用。 |
void |
propertyChange(PropertyChangeEvent e)
在綁定屬性發生更改時調用此方法。 |
void |
stateChanged(ChangeEvent e)
當偵聽器的目標已更改其狀態時調用。 |
void |
uninstallKeyboardActions(JComponent c)
未註冊的預設鍵動作 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public BasicButtonListener(AbstractButton b)
| 方法詳細資訊 |
|---|
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener 複製的描述
PropertyChangeListener 中的 propertyChangee - 描述事件源和已更改屬性的 PropertyChangeEvent 物件。protected void checkOpacity(AbstractButton b)
public void installKeyboardActions(JComponent c)
public void uninstallKeyboardActions(JComponent c)
public void stateChanged(ChangeEvent e)
ChangeListener 複製的描述
ChangeListener 中的 stateChangede - ChangeEvent 物件public void focusGained(FocusEvent e)
FocusListener 複製的描述
FocusListener 中的 focusGainedpublic void focusLost(FocusEvent e)
FocusListener 複製的描述
FocusListener 中的 focusLostpublic void mouseMoved(MouseEvent e)
MouseMotionListener 複製的描述
MouseMotionListener 中的 mouseMovedpublic void mouseDragged(MouseEvent e)
MouseMotionListener 複製的描述MOUSE_DRAGGED 事件被連續地傳遞到發起該拖動的元件(而不管鼠標位置是否處於該元件的邊界內)。
由於拖放實作是與平臺相關的,所以在本機拖放操作期間可能不傳遞 MOUSE_DRAGGED 事件。
MouseMotionListener 中的 mouseDraggedpublic void mouseClicked(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseClickedpublic void mousePressed(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mousePressedpublic void mouseReleased(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseReleasedpublic void mouseEntered(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseEnteredpublic void mouseExited(MouseEvent e)
MouseListener 複製的描述
MouseListener 中的 mouseExited
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。