| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
javax.swing.plaf.basic
类 BasicButtonListener
java.lang.Object javax.swing.plaf.basic.BasicButtonListener
- 所有已实现的接口:
- FocusListener, MouseListener, MouseMotionListener, PropertyChangeListener, EventListener, ChangeListener
public class BasicButtonListener
- extends Object
- implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener
按钮侦听器。
构造方法摘要 | |
---|---|
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) 在 bound 属性发生更改时调用此方法。 |
void | stateChanged(ChangeEvent e) 当侦听器的目标已更改其状态时调用。 |
void | uninstallKeyboardActions(JComponent c) 未注册的默认键动作 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
BasicButtonListener
public BasicButtonListener(AbstractButton b)
方法详细信息 |
---|
propertyChange
public void propertyChange(PropertyChangeEvent e)
- 从接口
PropertyChangeListener
复制的描述 - 在 bound 属性发生更改时调用此方法。
- 指定者:
- 接口
PropertyChangeListener
中的propertyChange
- 参数:
e
- 描述事件源和已更改的属性的 PropertyChangeEvent 对象。
checkOpacity
protected void checkOpacity(AbstractButton b)
installKeyboardActions
public void installKeyboardActions(JComponent c)
- 注册默认键动作:按下空格键以“单击”按钮并注册键盘助记符(如果有)。
uninstallKeyboardActions
public void uninstallKeyboardActions(JComponent c)
- 未注册的默认键动作
stateChanged
public void stateChanged(ChangeEvent e)
- 从接口
ChangeListener
复制的描述 - 当侦听器的目标已更改其状态时调用。
- 指定者:
- 接口
ChangeListener
中的stateChanged
- 参数:
e
- ChangeEvent 对象
focusGained
public void focusGained(FocusEvent e)
- 从接口
FocusListener
复制的描述 - 组件获得键盘焦点时调用。
- 指定者:
- 接口
FocusListener
中的focusGained
focusLost
public void focusLost(FocusEvent e)
- 从接口
FocusListener
复制的描述 - 组件失去键盘焦点时调用。
- 指定者:
- 接口
FocusListener
中的focusLost