com.partnersoft.modules.inspection.listener
Class InspectionFieldFocusListener

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

public class InspectionFieldFocusListener
extends java.lang.Object
implements java.awt.event.FocusListener

Used by the InspectionSelectionTab - and most other classes that implement the InspectionPlannerTab interface. Listens on a GUIField for it to gain focus. If it does, the associated picklist is set to the changeValue passed to this class.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
InspectionFieldFocusListener(com.partnersoft.gui.PicklistField picky, java.lang.String changeValue)
          Creates a new InspectionFocusListener.
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
          Set the value in stored picklist.
 void focusLost(java.awt.event.FocusEvent e)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionFieldFocusListener

public InspectionFieldFocusListener(com.partnersoft.gui.PicklistField picky,
                                    java.lang.String changeValue)
Creates a new InspectionFocusListener. Sets the passed PicklistField to the passed changeValue.

Parameters:
picky - - Picklist to change.
changeValue - - Value to set it to.
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Set the value in stored picklist. Calls picklist.getGUI().updateUI() after value is changed.

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Does nothing.

Specified by:
focusLost in interface java.awt.event.FocusListener