org.jvnet.substance.utils
Class RolloverButtonListener
java.lang.Object
javax.swing.plaf.basic.BasicButtonListener
org.jvnet.substance.utils.RolloverButtonListener
- All Implemented Interfaces:
- java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.ChangeListener
public class RolloverButtonListener
- extends javax.swing.plaf.basic.BasicButtonListener
Button listener for rollover effects. Tracks the mouse motion and focus
interaction for the associated button. This class is for internal use only.
- Author:
- Kirill Grouchnikov
| Methods inherited from class javax.swing.plaf.basic.BasicButtonListener |
checkOpacity, installKeyboardActions, mouseClicked, mouseDragged, mouseMoved, mousePressed, propertyChange, stateChanged, uninstallKeyboardActions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolloverButtonListener
public RolloverButtonListener(javax.swing.AbstractButton b)
- Simple constructor.
- Parameters:
b - The associated button.
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered in interface java.awt.event.MouseListener- Overrides:
mouseEntered in class javax.swing.plaf.basic.BasicButtonListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited in interface java.awt.event.MouseListener- Overrides:
mouseExited in class javax.swing.plaf.basic.BasicButtonListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased in interface java.awt.event.MouseListener- Overrides:
mouseReleased in class javax.swing.plaf.basic.BasicButtonListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained in interface java.awt.event.FocusListener- Overrides:
focusGained in class javax.swing.plaf.basic.BasicButtonListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost in interface java.awt.event.FocusListener- Overrides:
focusLost in class javax.swing.plaf.basic.BasicButtonListener
clearState
public void clearState()
- Clears model of the associated button.