IcanGui
Class GuiIcanPrompt

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

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

Prompt whether to read the ICAN/JAVA data from a file or enter it on-line.

Since:
1.0;
Version:
1.1.6;
Updated by Louis Handler on Dec 29, 2005, 09:10 EST (1.1.6).
Updated by Louis Handler on Oct 21, 2002, 09:22 EDT.
Updated by Louis Handler on Oct 11, 2002, 15:24 EDT.
Updated by Louis Handler on Jul 27, 2000, 13:46 EDT.
Updated by Louis Handler on Mar 28, 2000, 13:31 EST.
Updated by Louis Handler on Feb 22, 2000, 15:13 EST.
Updated by Louis Handler on Nov 19, 1999, 15:38 EST.
Updated by Louis Handler on Nov 23, 1998, 10:39 EST.
Updated by Matthew Der on Jul 10, 1998.
Updated by Louis Handler on Jun 18, 1998.
Author:
Louis Handler
See Also:
GuiWindow

Nested Class Summary
(package private)  class GuiIcanPrompt.Madapter
          Mouse Adapter Inner Class
 
Field Summary
private static java.lang.String[] buttonLabels
          Labels to display on action buttons.
private  java.awt.Button[] buttons
          Action buttons.
private  IcanDataSet data
          ICAN/JAVA data set.
private  boolean firstRun
          Variable to test for the first time the frame is displayed.
private static int iCancel
          Cancel Button will exit this screen.
private static int iExit
          Exit Button will exit the entire program.
private static int iHelp
          Help Button will display a set of information.
private static int iIcanEnter
          Enter/Modify Data for ICAN/JAVA: Displays a sequence of screens prompting the user for the data necessary to run the Integrated Composite Analyzer (ICAN/JAVA) program.
private static int iIcanRead
          Read my ICAN/JAVA Input File: Displays a File selection dialog and prompts the user to choose the appropriate file.
private static int iReadProb1
          Read sample ICAN/JAVA Input File from documentation.
private static int iReadProb2
          Read sample ICAN/JAVA Input File from documentation.
private static int iReadProb3
          Read sample ICAN/JAVA Input File from documentation.
private static int iReadSamp1
          Read sample ICAN/JAVA Input File from documentation.
private  MaterialDataBankSet mdb
          Material DataBank set.
private static int nAction
          Number of initial buttons used to read/modify ICAN/JAVA input data.
private static int nButtons
          Number of action buttons.
private  java.awt.Component saveCompFocus
          Component to set focus to.
 
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
GuiIcanPrompt()
          Constructor creates window to display buttons to control operation of Integrated Composite Analyzer (ICAN/JAVA).
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Detect an Action Event and process it accordingly.
 void changeGuiUnits()
          Change units on GUI for this class.
 java.lang.String getIcanFileName()
          Display file dialog and get ICAN/JAVA input data filename.
 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 to control operation of Integrated Composite Analyzer (ICAN/JAVA).
 void keyPressed(java.awt.event.KeyEvent evt)
          Does Nothing
 void keyReleased(java.awt.event.KeyEvent evt)
          Detects when the following keys are released Tab, up arrow, down arrow, enter, shift+tab, alt+right, alt+left, F1
 void keyTyped(java.awt.event.KeyEvent evt)
          Does Nothing
 void presetData()
          Set title and other ICAN/JAVA data.
 void readFileAndGo(java.lang.String fileName)
          Display wait screen, reset input and output data, read new input data, validate input data, remove wait screen, and proceed to enter/modify ICAN/JAVA data screen.
 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

iCancel

private static final int iCancel
Cancel Button will exit this screen. The Cancel Button will NOT exit the entire program.

See Also:
Constant Field Values

iExit

private static final int iExit
Exit Button will exit the entire program.

See Also:
Constant Field Values

iHelp

private static final int iHelp
Help Button will display a set of information.

See Also:
Constant Field Values

iIcanEnter

private static final int iIcanEnter
Enter/Modify Data for ICAN/JAVA: Displays a sequence of screens prompting the user for the data necessary to run the Integrated Composite Analyzer (ICAN/JAVA) program.

See Also:
Constant Field Values

iIcanRead

private static final int iIcanRead
Read my ICAN/JAVA Input File: Displays a File selection dialog and prompts the user to choose the appropriate file.

See Also:
Constant Field Values

iReadSamp1

private static final int iReadSamp1
Read sample ICAN/JAVA Input File from documentation.

See Also:
Constant Field Values

iReadProb1

private static final int iReadProb1
Read sample ICAN/JAVA Input File from documentation.

See Also:
Constant Field Values

iReadProb2

private static final int iReadProb2
Read sample ICAN/JAVA Input File from documentation.

See Also:
Constant Field Values

iReadProb3

private static final int iReadProb3
Read sample ICAN/JAVA Input File from documentation.

See Also:
Constant Field Values

buttonLabels

private static final java.lang.String[] buttonLabels
Labels to display on action buttons.


nButtons

private static final int nButtons
Number of action buttons.


nAction

private static final int nAction
Number of initial buttons used to read/modify ICAN/JAVA input data.


buttons

private java.awt.Button[] buttons
Action buttons.


data

private IcanDataSet data
ICAN/JAVA data set.


mdb

private MaterialDataBankSet mdb
Material DataBank set.


firstRun

private boolean firstRun
Variable to test for the first time the frame is displayed. Used to set focus on entry.


saveCompFocus

private java.awt.Component saveCompFocus
Component to set focus to.

Constructor Detail

GuiIcanPrompt

public GuiIcanPrompt()
Constructor creates window to display buttons to control operation of Integrated Composite Analyzer (ICAN/JAVA).

Method Detail

initMe

protected void initMe()
Create window to display buttons to control operation of Integrated Composite Analyzer (ICAN/JAVA).

Specified by:
initMe in class GuiWindow

getIcanFileName

public java.lang.String getIcanFileName()
Display file dialog and get ICAN/JAVA input data filename.

Returns:
ICAN/JAVA input data filename.
See Also:
FileDialog

actionPerformed

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

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

readFileAndGo

public void readFileAndGo(java.lang.String fileName)
Display wait screen, reset input and output data, read new input data, validate input data, remove wait screen, and proceed to enter/modify ICAN/JAVA data screen.

Parameters:
fileName - The path to the desired file. The file name has the format: [[http://host/]path/]file.dat

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)
Detects when the following keys are 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.

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.