com.partnersoft.modules.inspection.listener
Class InspectionPicklistChangeListener

java.lang.Object
  extended by com.partnersoft.modules.inspection.listener.InspectionPicklistChangeListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

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

Used by the InspectionSelectionTab - and most other classes that implement the InspectionPlannerTab interface. Listens on a Picklist for it to be set to the clearValue passed to the constructor. If it is found, the associated GUIField's setValue is called with a null parameter.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
InspectionPicklistChangeListener(com.partnersoft.gui.GUIField field, java.lang.String clearValue)
          Creates a new InspectionPicklistListener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Compares picklist's currently selected item to stored clearValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionPicklistChangeListener

public InspectionPicklistChangeListener(com.partnersoft.gui.GUIField field,
                                        java.lang.String clearValue)
Creates a new InspectionPicklistListener.

Parameters:
field - - GUIField to clear.
clearValue - - Value to listen for before clearing.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Compares picklist's currently selected item to stored clearValue. If it matches, the stored GUIField's value is set to null.

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