jimm.datavision.gui.parameter
Class Inquisitor

java.lang.Object
  extended by jimm.datavision.gui.parameter.Inquisitor
Direct Known Subclasses:
BoolInq, ListStringInq, RangeDateInq, RangeStringInq, SingleDateInq, SingleStringInq

abstract class Inquisitor
extends java.lang.Object

An inquisitor knows how to display and control the widgets needed to ask a user for parameter values. Inquisitors are used in ParamAskWins.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static int instanceCount
           
protected  javax.swing.JPanel panel
           
protected  java.lang.String panelName
           
protected  Parameter parameter
           
protected static int TEXT_FIELD_COLS
           
 
Constructor Summary
Inquisitor(Parameter param)
          Constructor.
 
Method Summary
(package private) abstract  void copyGUIIntoParam()
          Copy all values from our GUI widgets into the parameter's value(s).
(package private) abstract  void copyParamIntoGUI()
          Copy all values from parameter's value(s) into our GUI widgets.
static Inquisitor create(Parameter param)
          This factory method returns the proper inquisitor for the specified parameter.
(package private)  javax.swing.JPanel getPanel()
           
(package private)  java.lang.String getPanelName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_FIELD_COLS

protected static final int TEXT_FIELD_COLS
See Also:
Constant Field Values

instanceCount

protected static int instanceCount

parameter

protected Parameter parameter

panel

protected javax.swing.JPanel panel

panelName

protected java.lang.String panelName
Constructor Detail

Inquisitor

Inquisitor(Parameter param)
Constructor.

Parameters:
param - the parameter we're going to edit
Method Detail

create

public static Inquisitor create(Parameter param)
This factory method returns the proper inquisitor for the specified parameter.

Parameters:
param - a parameter

getPanel

javax.swing.JPanel getPanel()

getPanelName

java.lang.String getPanelName()

copyGUIIntoParam

abstract void copyGUIIntoParam()
Copy all values from our GUI widgets into the parameter's value(s).


copyParamIntoGUI

abstract void copyParamIntoGUI()
Copy all values from parameter's value(s) into our GUI widgets.