com.partnersoft.modules.inspection.gui
Class InspectionSelectionTab

java.lang.Object
  extended by com.partnersoft.modules.inspection.gui.InspectionSelectionTab
All Implemented Interfaces:
InspectionPlannerTab
Direct Known Subclasses:
InspectionEditTab

public class InspectionSelectionTab
extends java.lang.Object
implements InspectionPlannerTab

A Inspection Selection Gui Tab for the InspectionPlannerForm. Displays all fields available in the passed kit's schema, and allows users to select values to search for. On button click, sets the current tab to the stored nextTab value. The selected inspections are stored in the parent planner form's Naming variable under the key "selectedInspections".

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
InspectionSelectionTab(InspectionPlannerForm parent, InspectionKit kit, InspectionStore store, java.lang.String nextTab, java.lang.String tabName)
          Creates a new InspectionSelectionTab object.
InspectionSelectionTab(InspectionPlannerForm parent, InspectionKit kit, InspectionStore store, java.lang.String nextTab, java.lang.String tabName, java.util.List<java.lang.String> operators)
          Creates a new InspectionSelectionTab object.
InspectionSelectionTab(InspectionPlannerForm parent, InspectionKit kit, InspectionStore store, java.lang.String nextTab, java.lang.String tabName, java.util.List<java.lang.String> operators, java.lang.String defaultPicklist)
          Creates a new InspectionSelectionTab object.
InspectionSelectionTab(InspectionPlannerForm parent, InspectionKit kit, InspectionStore store, java.lang.String nextTab, java.lang.String tabName, java.util.List<java.lang.String> operators, java.lang.String defaultPicklist, java.lang.String clearPicklistOn, java.lang.String setPicklistTo)
          Creates a new InspectionSelectionTab object.
InspectionSelectionTab(InspectionPlannerForm parent, InspectionKit kit, java.lang.String nextTab, java.lang.String tabName)
          Creates a new InspectionSelectionTab object.
 
Method Summary
 void fireButton()
           
 java.lang.String getCardName()
           
 com.partnersoft.gui.GUIForm getGuiForm()
           
protected  InspectionKit getKit()
           
 java.lang.String getNextCardName()
           
protected  InspectionPlannerForm getParent()
           
protected  InspectionStore getStore()
           
 void preVisibleSetup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionSelectionTab

public InspectionSelectionTab(InspectionPlannerForm parent,
                              InspectionKit kit,
                              java.lang.String nextTab,
                              java.lang.String tabName)
Creates a new InspectionSelectionTab object.

Parameters:
parent - - InspectionPlannerForm this is added to.
kit - - InspectionKit for the desired Inspection Type
store - - The InspectionStore to query for inspections.
nextTab - - String card name of tab to set parent to after button click.
tabName - - This tab's card name.

InspectionSelectionTab

public InspectionSelectionTab(InspectionPlannerForm parent,
                              InspectionKit kit,
                              InspectionStore store,
                              java.lang.String nextTab,
                              java.lang.String tabName)
Creates a new InspectionSelectionTab object.

Parameters:
parent - - InspectionPlannerForm this is added to.
kit - - InspectionKit for the desired Inspection Type
store - - The InspectionStore to query for inspections.
nextTab - - String card name of tab to set parent to after button click.
tabName - - This tab's card name.

InspectionSelectionTab

public InspectionSelectionTab(InspectionPlannerForm parent,
                              InspectionKit kit,
                              InspectionStore store,
                              java.lang.String nextTab,
                              java.lang.String tabName,
                              java.util.List<java.lang.String> operators)
Creates a new InspectionSelectionTab object.

Parameters:
parent - - InspectionPlannerForm this is added to.
kit - - InspectionKit for the desired Inspection Type
store - - The InspectionStore to query for inspections.
nextTab - - String card name of tab to set parent to after button click.
tabName - - This tab's card name.
operators - - List of operators to add to each picklist.

InspectionSelectionTab

public InspectionSelectionTab(InspectionPlannerForm parent,
                              InspectionKit kit,
                              InspectionStore store,
                              java.lang.String nextTab,
                              java.lang.String tabName,
                              java.util.List<java.lang.String> operators,
                              java.lang.String defaultPicklist)
Creates a new InspectionSelectionTab object.

Parameters:
parent - - InspectionPlannerForm this is added to.
kit - - InspectionKit for the desired Inspection Type
store - - The InspectionStore to query for inspections.
nextTab - - String card name of tab to set parent to after button click.
tabName - - This tab's card name.
operators - - List of operators to add to each picklist.
defaultPicklist - - Starting value to set each picklist to.

InspectionSelectionTab

public InspectionSelectionTab(InspectionPlannerForm parent,
                              InspectionKit kit,
                              InspectionStore store,
                              java.lang.String nextTab,
                              java.lang.String tabName,
                              java.util.List<java.lang.String> operators,
                              java.lang.String defaultPicklist,
                              java.lang.String clearPicklistOn,
                              java.lang.String setPicklistTo)
Creates a new InspectionSelectionTab object.

Parameters:
parent - - InspectionPlannerForm this is added to.
kit - - InspectionKit for the desired Inspection Type
store - - The InspectionStore to query for inspections.
nextTab - - String card name of tab to set parent to after button click.
tabName - - This tab's card name.
operators - - List of operators to add to each picklist.
defaultPicklist - - Starting value to set each picklist to.
clearPicklistOn - - Value to clear GUI field associated with picklist on when picklist is set to it.
setPicklistTo - - Value to set picklist to when associated GUI field gains focus.
Method Detail

getCardName

public java.lang.String getCardName()
Specified by:
getCardName in interface InspectionPlannerTab

getGuiForm

public com.partnersoft.gui.GUIForm getGuiForm()
Specified by:
getGuiForm in interface InspectionPlannerTab

preVisibleSetup

public void preVisibleSetup()
Specified by:
preVisibleSetup in interface InspectionPlannerTab

fireButton

public void fireButton()
Specified by:
fireButton in interface InspectionPlannerTab

getNextCardName

public java.lang.String getNextCardName()
Specified by:
getNextCardName in interface InspectionPlannerTab

getKit

protected InspectionKit getKit()

getParent

protected InspectionPlannerForm getParent()

getStore

protected InspectionStore getStore()