edu.cmu.hcii.calo.view.SearchField.CancelListener Class Reference

List of all members.

Detailed Description

Handles a click on the cancel button by clearing the text and notifying any ActionListeners.


Public Member Functions

void mouseDragged (MouseEvent e)
 Invoked when the mouse is dragged.
void mouseEntered (MouseEvent e)
 Invoked when the mouse enters the field.
void mouseExited (MouseEvent e)
 Invoked when the mouse exits the field.
void mouseMoved (MouseEvent e)
 Invoked when the mouse is moved inside the field.
void mousePressed (MouseEvent e)
 Invoked when the mouse is pressed inside the field.
void mouseReleased (MouseEvent e)
 Invoked when the mouse is released inside the field.

Private Member Functions

void arm (MouseEvent e)
 "Arms" the cancel button if the mouse event was over it.
void disarm ()
 "Disarms" the cancel button.
boolean isOverButton (MouseEvent e)
 Returns whether the mouse event was over the cancel button.


Member Function Documentation

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mouseDragged ( MouseEvent  e  ) 

Invoked when the mouse is dragged.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mouseEntered ( MouseEvent  e  ) 

Invoked when the mouse enters the field.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mouseExited ( MouseEvent  e  ) 

Invoked when the mouse exits the field.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mouseMoved ( MouseEvent  e  ) 

Invoked when the mouse is moved inside the field.

Parameters:
e the mouse event
See also:
java.awt.event.MouseAdapter.mouseMoved(java.awt.event.MouseEvent)

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mousePressed ( MouseEvent  e  ) 

Invoked when the mouse is pressed inside the field.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.mouseReleased ( MouseEvent  e  ) 

Invoked when the mouse is released inside the field.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.arm ( MouseEvent  e  )  [private]

"Arms" the cancel button if the mouse event was over it.

Armed means that when the mouse is released, the field will be cleared.

Parameters:
e the mouse event

void edu.cmu.hcii.calo.view.SearchField.CancelListener.disarm (  )  [private]

"Disarms" the cancel button.

See above for definition of "armed".

boolean edu.cmu.hcii.calo.view.SearchField.CancelListener.isOverButton ( MouseEvent  e  )  [private]

Returns whether the mouse event was over the cancel button.

Parameters:
e the mouse event
Returns:
true if the mouse event was over the cancel button, false otherwise


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:23 2007 for CALO by  doxygen 1.5.2