rolodex
Class CancelAddButtonListener

java.lang.Object
  |
  +--rolodex.CancelAddButtonListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class CancelAddButtonListener
extends java.lang.Object
implements java.awt.event.ActionListener

Class CancelAddButtonListener is attached to the Cancel button in the add card dialog. It is an example of referential transparency of design. See the documentation for OKAddButtonListener for further discussion of referential transparency.


Field Summary
protected  RolodexMenuUI rmui
          The lexical grandparent view
 
Constructor Summary
CancelAddButtonListener(RolodexMenuUI rmui)
          Construct this with the given grandparent rolodex view.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Respond to a press of this button by calling RolodexMenuUI.showEmptyDialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rmui

protected RolodexMenuUI rmui
The lexical grandparent view

Constructor Detail

CancelAddButtonListener

public CancelAddButtonListener(RolodexMenuUI rmui)
Construct this with the given grandparent rolodex view. Access to the grandparent view is for the purposes of effecting the cancellation, which in terms of the view means to replace the add card dialog with an empty data entry area. Note that no model access is necessary in this button since pressing this has no effect on the rolodex, only on the rolodex view.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Respond to a press of this button by calling RolodexMenuUI.showEmptyDialog.

Specified by:
actionPerformed in interface java.awt.event.ActionListener