IcanGui
Class GuiExpert

java.lang.Object
  extended by IcanGui.GuiHierarchy
      extended by IcanGui.GuiWindow
          extended by IcanGui.GuiExpert
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.util.EventListener

public class GuiExpert
extends GuiWindow
implements java.awt.event.ActionListener, java.awt.event.KeyListener

Display the steps used and wait for the user to choose the next one. This class will eventually be eliminated and replaced by an automatic procedure that automatically goes to the next step.

Since:
1.0;
Version:
1.1.6;
Updated by Louis Handler on Oct 3, 2005, 11:22 EDT (1.1.6).
Updated by Louis Handler on Jun 8, 2005, 10:24 EDT (1.1.5).
Updated by Louis Handler on Apr 9, 2004, 12:16 EDT.
Updated by Louis Handler on Oct 17, 2002, 10:24 EDT.
Updated by Louis Handler on Oct 11, 2002, 15:23 EDT.
Updated by Louis Handler on Oct 11, 2002, 12:41 EDT.
Updated by Louis Handler on Oct 10, 2002, 15:00 EDT.
Updated by Louis Handler on Oct 7, 2002, 14:28 EDT.
Updated by Louis Handler on Oct 7, 2002, 13:45 EDT.
Updated by Louis Handler on Jul 27, 2000, 13:38 EDT.
Updated by Louis Handler on Mar 28, 2000, 13:09 EST.
Updated by Louis Handler on Feb 22, 2000, 14:50 EST.
Updated by Louis Handler on Nov 19, 1999, 09:36 EST.
Updated by Louis Handler on Nov 23, 1998, 10:32 EST.
Updated by Louis Handler on Oct 27, 1998, 14:38 EST.
Updated by Matthew Der on Jul 9, 1998.
Updated by Louis Handler on Jun 18, 1998.
Author:
Louis Handler
See Also:
GuiWindow

Nested Class Summary
(package private)  class GuiExpert.Madapter
          Mouse Adapter Inner Class
 
Field Summary
private  java.awt.Button[] bSteps
          Array of buttons to display and use.
private  boolean firstRun
          Normal display height in inches.
private static int iEnd
          Number of possible execution steps.
private static int iStart
          Normal beginning of execution steps.
private  int iStep
          Current execution step.
private static int nButtons
          Number of control buttons.
private  java.awt.Component saveCompFocus
          Current component with focus.
private static java.lang.String[] sNext
          Array containing labels for execution steps.
private static java.lang.String[] sSteps
          Array containing labels of control buttons.
 
Fields inherited from class IcanGui.GuiWindow
frameTitle, whatAmI, windowFrame
 
Fields inherited from class IcanGui.GuiHierarchy
IDO_ICAN_DATA, IDO_ICAN_DATA_BOOLEANS, IDO_ICAN_DATA_DAMPING, IDO_ICAN_DATA_IMPACT, IDO_ICAN_DATA_LOADS, IDO_ICAN_DATA_MATERIAL, IDO_ICAN_DATA_OUTPUTS, IDO_ICAN_DATA_PLOT_IMPACT, IDO_ICAN_DATA_PLOTPL, IDO_ICAN_DATA_PLY, IDO_ICAN_DATA_PROCESS, IDO_ICAN_DATA_REACTION, IDO_ICAN_DATA_SLICE, IDO_ICAN_DATA_SLICE_TABLE, IDO_ICAN_DATA_VVI, IDO_ICAN_DATA_VVR, IDO_ICAN_ELECTRICAL_CYCLIC_LOADS, IDO_ICAN_ELECTRICAL_STATIC_LOADS, IDO_ICAN_EXPERT, IDO_ICAN_HYGRAL_CYCLIC_LOADS, IDO_ICAN_HYGRAL_STATIC_LOADS, IDO_ICAN_MECH_CYCLIC_LOADS, IDO_ICAN_MECH_STATIC_DISPLACEMENTS, IDO_ICAN_MECH_STATIC_LOADS, IDO_ICAN_MORE_LOADS, IDO_ICAN_PROMPT, IDO_ICAN_RATE_LOADS, IDO_ICAN_THERMAL_CYCLIC_LOADS, IDO_ICAN_THERMAL_STATIC_LOADS, IDO_MAIN, IDO_MDB_DATA_MFIM, IDO_MDB_DATA_START, IDO_MDB_PROMPT, IDO_MSG_DATA, NDO
 
Constructor Summary
GuiExpert()
          Constructor creates window to display buttons.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Detect Action Events and process accordingly
 void changeGuiUnits()
          Change units on GUI for this class.
private  void getIcanInputData()
          Get ICAN/JAVA Input Data
private  void getMaterialDataBankData()
          Get Material DataBank Data
 java.lang.String getName()
          Get class name.
 void helpMe()
          Display Help Message.
 void helpMe(java.awt.Component target)
          Display help message for a specified component.
protected  void initMe()
          Create window to display buttons.
 void keyPressed(java.awt.event.KeyEvent evt)
          Does Nothing
 void keyReleased(java.awt.event.KeyEvent evt)
          Key is released.
 void keyTyped(java.awt.event.KeyEvent evt)
          Does Nothing
 void presetData()
          Set title and other ICAN/JAVA data.
private  void processIcanOutputs()
          Process ICAN/JAVA Outputs
private  void runIcanProgram()
          Run ICAN/JAVA Program
private  void saveIcanInputs()
          Save ICAN/JAVA Inputs
 void setCompFocus()
          Set focus to some component.
 void setCompFocus(java.awt.Component cFocus)
          Set focus in current class/frame.
 
Methods inherited from class IcanGui.GuiWindow
addGB, askExit, askQuestion, showMessageInfo
 
Methods inherited from class IcanGui.GuiHierarchy
changeAllGuiUnits, exitGui, getCurrent, getFrame, getFrame, getGuiWindowClass, getGuiWindowClass, hideMe, initHierarchy, setCurrent, setNextUp, showMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sNext

private static final java.lang.String[] sNext
Array containing labels for execution steps.


sSteps

private static final java.lang.String[] sSteps
Array containing labels of control buttons.


nButtons

private static final int nButtons
Number of control buttons.


iStart

private static final int iStart
Normal beginning of execution steps.

See Also:
Constant Field Values

iEnd

private static final int iEnd
Number of possible execution steps.


iStep

private int iStep
Current execution step. Initialize to the normal beginning of execution steps.

See Also:
iStart

bSteps

private java.awt.Button[] bSteps
Array of buttons to display and use.


firstRun

private boolean firstRun
Normal display height in inches. private double height = 0.14; /** Variable to test for the first time the frame is displayed. Used to set focus on entry.


saveCompFocus

private java.awt.Component saveCompFocus
Current component with focus.

Constructor Detail

GuiExpert

public GuiExpert()
Constructor creates window to display buttons.

Method Detail

initMe

protected void initMe()
Create window to display buttons. The buttons encapsulate the steps required to run all parts of the application/applet.

Specified by:
initMe in class GuiWindow

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Detect Action Events and process accordingly

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - Action event.

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Does Nothing

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
evt - Key Event.

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Does Nothing

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
evt - Key Event.

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Key is released. Tab, up arrow, down arrow, enter, shift+tab, alt+right, alt+left, F1

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
evt - Key Event.

helpMe

public void helpMe()
Display Help Message.


helpMe

public void helpMe(java.awt.Component target)
Display help message for a specified component.

Specified by:
helpMe in class GuiWindow
Parameters:
target - Component for which help is desired.

getMaterialDataBankData

private void getMaterialDataBankData()
Get Material DataBank Data


getIcanInputData

private void getIcanInputData()
Get ICAN/JAVA Input Data


runIcanProgram

private void runIcanProgram()
Run ICAN/JAVA Program


processIcanOutputs

private void processIcanOutputs()
Process ICAN/JAVA Outputs


saveIcanInputs

private void saveIcanInputs()
Save ICAN/JAVA Inputs


setCompFocus

public void setCompFocus()
Set focus to some component. Normally used when entering this screen after show().

Specified by:
setCompFocus in class GuiHierarchy

setCompFocus

public void setCompFocus(java.awt.Component cFocus)
Set focus in current class/frame.

Specified by:
setCompFocus in class GuiHierarchy
Parameters:
cFocus - Component to save to reset later.

presetData

public void presetData()
Set title and other ICAN/JAVA data.

Specified by:
presetData in class GuiWindow

changeGuiUnits

public void changeGuiUnits()
Change units on GUI for this class. Invoked when user changes units.

Specified by:
changeGuiUnits in class GuiWindow

getName

public java.lang.String getName()
Get class name.

Specified by:
getName in class GuiWindow
Returns:
Class name.