javax.swing.plaf.basic
public class BasicButtonListener extends Object implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener
Constructor Summary | |
---|---|
BasicButtonListener(AbstractButton b) |
Method Summary | |
---|---|
protected void | checkOpacity(AbstractButton b)
Checks the contentAreaFilled property and updates the
opaque property of the button.
|
void | focusGained(FocusEvent e) |
void | focusLost(FocusEvent e) |
void | installKeyboardActions(JComponent c) |
void | mouseClicked(MouseEvent e) |
void | mouseDragged(MouseEvent e) |
void | mouseEntered(MouseEvent e)
Accept a mouse enter event and set the button's "rollover" property to
true , if the button's "rolloverEnabled" property is
true . |
void | mouseExited(MouseEvent e)
Accept a mouse exit event and set the button's model's "rollover"
property to false , if it's "rolloverEnabled" property is
true . |
void | mouseMoved(MouseEvent e) |
void | mousePressed(MouseEvent e)
Accept a mouse press event and arm the button.
|
void | mouseReleased(MouseEvent e)
Accept a mouse release event and set the button's
"pressed" property to true , if the model
is armed. |
void | propertyChange(PropertyChangeEvent e) |
void | stateChanged(ChangeEvent e) |
void | uninstallKeyboardActions(JComponent c) |
contentAreaFilled
property and updates the
opaque property of the button.
Parameters: b the button to check
true
, if the button's "rolloverEnabled" property is
true
. If the button is currently armed and the mouse
button is not held down, this enter event will also disarm the model.
Parameters: e The mouse enter event to accept
false
, if it's "rolloverEnabled" property is
true
. Also disarm the button.
Parameters: e The mouse exit event to accept
Parameters: e The mouse press event to accept
true
, if the model
is armed. If the model is not armed, ignore the event.
Parameters: e The mouse release event to accept