java.lang.Object
javax.swing.plaf.basic.BasicButtonListener
- All Implemented Interfaces:
FocusListener,MouseListener,MouseMotionListener,PropertyChangeListener,EventListener,ChangeListener
public class BasicButtonListener extends Object implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener
Button Listener
-
Constructor Summary
Constructors Constructor Description BasicButtonListener(AbstractButton b)Constructs a new instance ofBasicButtonListener. -
Method Summary
Modifier and Type Method Description protected voidcheckOpacity(AbstractButton b)Checks the opacity of theAbstractButton.voidinstallKeyboardActions(JComponent c)Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).voiduninstallKeyboardActions(JComponent c)Unregister default key actions.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javax.swing.event.ChangeListener
stateChangedMethods declared in interface java.awt.event.FocusListener
focusGained, focusLostMethods declared in interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedMethods declared in interface java.awt.event.MouseMotionListener
mouseDragged, mouseMovedMethods declared in interface java.beans.PropertyChangeListener
propertyChange
-
Constructor Details
-
BasicButtonListener
Constructs a new instance ofBasicButtonListener.- Parameters:
b- an abstract button
-
-
Method Details
-
checkOpacity
Checks the opacity of theAbstractButton.- Parameters:
b- an abstract button
-
installKeyboardActions
Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).- Parameters:
c- a component
-
uninstallKeyboardActions
Unregister default key actions.- Parameters:
c- a component
-