IcanGui
Class GuiWindow

java.lang.Object
  extended by IcanGui.GuiHierarchy
      extended by IcanGui.GuiWindow
Direct Known Subclasses:
GuiExpert, GuiIcanData, GuiIcanDataBooleans, GuiIcanDataDamping, GuiIcanDataImpact, GuiIcanDataLoads, GuiIcanDataMaterial, GuiIcanDataOutputs, GuiIcanDataPlotImpact, GuiIcanDataPlotPL, GuiIcanDataPly, GuiIcanDataProcess, GuiIcanDataReaction, GuiIcanDataSlice, GuiIcanDataSliceTable, GuiIcanElectricalCyclicLoads, GuiIcanElectricalStaticLoads, GuiIcanHygralCyclicLoads, GuiIcanHygralStaticLoads, GuiIcanMechCyclicLoads, GuiIcanMechStaticDisplacements, GuiIcanMechStaticLoads, GuiIcanMoreLoads, GuiIcanPrompt, GuiIcanRateLoads, GuiIcanThermalCyclicLoads, GuiIcanThermalStaticLoads, GuiIcanVoidVolumeItems, GuiIcanVoidVolumeRatios, GuiMain, GuiMdbData, GuiMdbDataMfim, GuiMdbPrompt, GuiMsgData

public abstract class GuiWindow
extends GuiHierarchy

Encapsulate the common behavior of every window.

Since:
1.0;
Version:
1.0.10;
Updated by Louis Handler on Oct 28, 2004, 15:31 EDT (1.0.10).
Updated by Louis Handler on Nov 19, 1999, 10:10 EST.
Updated by Louis Handler on Nov 23, 1998, 12:32 EST.
Updated by Louis Handler on Jun 16, 1998.
Author:
Louis Handler
See Also:
GuiHierarchy

Field Summary
protected  java.lang.String frameTitle
          Window Frame title for the current subclass.
protected  int whatAmI
          Class/window subscript for the current subclass.
protected  IcanFrame windowFrame
          Window frame for the current subclass.
 
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
GuiWindow()
           
 
Method Summary
static void addGB(java.awt.Component cadd, java.awt.Panel padd, java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int gridx, int gridy, int gridwidth, int gridheight, int weightx, int weighty, int fill, int anchor)
          Add component to Panel according to GridBagLayout
static boolean askExit()
          Asks whether User really wants to exit.
static boolean askQuestion(java.lang.String msg)
          Display question and obtain reply.
abstract  void changeGuiUnits()
          Change units on GUI for this class.
abstract  java.lang.String getName()
          Get class name.
abstract  void helpMe(java.awt.Component target)
          Display help screen as required.
protected abstract  void initMe()
          Create window to display any buttons, checkboxes, and text entry fields.
abstract  void presetData()
          Set title and other ICAN/JAVA data.
static void showMessageInfo(java.lang.String msg)
          Display informational message.
 
Methods inherited from class IcanGui.GuiHierarchy
changeAllGuiUnits, exitGui, getCurrent, getFrame, getFrame, getGuiWindowClass, getGuiWindowClass, hideMe, initHierarchy, setCompFocus, setCompFocus, setCurrent, setNextUp, showMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

whatAmI

protected int whatAmI
Class/window subscript for the current subclass.


windowFrame

protected IcanFrame windowFrame
Window frame for the current subclass.


frameTitle

protected java.lang.String frameTitle
Window Frame title for the current subclass.

Constructor Detail

GuiWindow

public GuiWindow()
Method Detail

initMe

protected abstract void initMe()
Create window to display any buttons, checkboxes, and text entry fields.


helpMe

public abstract void helpMe(java.awt.Component target)
Display help screen as required.

Parameters:
target - Component for which the help screen is displayed.

presetData

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


changeGuiUnits

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


showMessageInfo

public static void showMessageInfo(java.lang.String msg)
Display informational message.

Parameters:
msg - Message to be displayed.

askQuestion

public static boolean askQuestion(java.lang.String msg)
Display question and obtain reply.

Parameters:
msg - Message to be displayed.
Returns:
True or false reply to question.
See Also:
IcanButtonDialog

askExit

public static boolean askExit()
Asks whether User really wants to exit.

Returns:
True if user really wants to exit; else, false.

addGB

public static void addGB(java.awt.Component cadd,
                         java.awt.Panel padd,
                         java.awt.GridBagLayout gbl,
                         java.awt.GridBagConstraints gbc,
                         int gridx,
                         int gridy,
                         int gridwidth,
                         int gridheight,
                         int weightx,
                         int weighty,
                         int fill,
                         int anchor)
Add component to Panel according to GridBagLayout

Parameters:
cadd - Component to be added.
padd - Panel to which component is added.
gbl - GridBagLayout to be used. Note that there is a limit of 512 rows or columns in a GridBagLayout.
gbc - GridBagConstraints to be used.
gridx - X grid position to be used.
gridy - Y grid position to be used.
gridwidth - Grid width to be used.
gridheight - Grid height to be used.
weightx - X weight to be used.
weighty - Y weight to be used.
fill - Switch to determine how to display a component when it is larger than its display area. Valid values are NONE, HORIZONTAL, VERTICAL, or BOTH.
anchor - Switch to determine how to display a component when it is smaller than its display area. Valid values are CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, or NORTHWEST.

getName

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

Returns:
Class name.