org.argouml.swingext
Class PopupToolBoxButton.MyMouseListener

java.lang.Object
  |
  +--org.argouml.swingext.PopupToolBoxButton.MyMouseListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Enclosing class:
PopupToolBoxButton

private class PopupToolBoxButton.MyMouseListener
extends java.lang.Object
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener

It would have been easier to put a mouse listener on the arrowlabel but this seems to introduce a swing bug and the main JButton loses its rollover border. So the mouselistener is more complex and needs to determine where oon the main button the mouse is.


Constructor Summary
private PopupToolBoxButton.MyMouseListener()
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent me)
           
 void mouseDragged(java.awt.event.MouseEvent me)
           
 void mouseEntered(java.awt.event.MouseEvent me)
          Empty method to satisy interface only, there is no special action to take place when the mouse first enters the PopupToolBoxButton area
 void mouseExited(java.awt.event.MouseEvent me)
          Be double sure the dropdowns rollover divider is removed when we leave the button.
 void mouseMoved(java.awt.event.MouseEvent me)
          If the mouse movement occurs within the PopupToolBoxButton.
 void mousePressed(java.awt.event.MouseEvent me)
          Empty method to satisy interface only, there is no special action to take place when the mouse is pressed on the PopupToolBoxButton area
 void mouseReleased(java.awt.event.MouseEvent me)
          Empty method to satisy interface only, there is no special action to take place when the mouse is released on the PopupToolBoxButton area
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupToolBoxButton.MyMouseListener

private PopupToolBoxButton.MyMouseListener()
Method Detail

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent me)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent me)
If the mouse movement occurs within the PopupToolBoxButton. If the mouse moves in and out of the area of the button that has the dropdown then change the icon.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent me)
Empty method to satisy interface only, there is no special action to take place when the mouse first enters the PopupToolBoxButton area

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent me)
Be double sure the dropdowns rollover divider is removed when we leave the button.

Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Empty method to satisy interface only, there is no special action to take place when the mouse is pressed on the PopupToolBoxButton area

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Empty method to satisy interface only, there is no special action to take place when the mouse is released on the PopupToolBoxButton area

Specified by:
mouseReleased in interface java.awt.event.MouseListener


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook