diagapplet.CodeGen
Class CodeGen

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by diagapplet.CodeGen.CodeGen
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible

public class CodeGen
extends java.applet.Applet
implements java.lang.Runnable, java.awt.event.ActionListener

Main Class for applet CodeGen only needed for Graphical CodeGen and RCS Design Tool. not needed for newer recommended CodeGenCmdLine

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static boolean debug_on
          Set to true to have many fuctions print degub info to System.out.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CodeGen()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void destroy()
           
 java.lang.String getAppletInfo()
          Old VisualJ APPLET INFO SUPPORT: The getAppletInfo() method returns a string describing the applet's author, copyright date, or miscellaneous information.
 java.lang.String GetParameter(java.lang.String strName, java.lang.String[] args)
          From old VisualJ STANDALONE APPLICATION SUPPORT The GetParameter() method is a replacement for the getParameter() method defined by Applet.
 java.lang.String[][] getParameterInfo()
          Old VisualJ PARAMETER SUPPORT The getParameterInfo() method returns an array of strings describing the parameters understood by this applet.
 void GetParameters(java.lang.String[] args)
          From old VisualJ STANDALONE APPLICATION SUPPORT The GetParameters() method retrieves the values of each of the applet's parameters and stores them in variables.
 void init()
           
 void InitializeClassList()
          Used by RCS Design tool.
 void LoadHierarchy()
          See CodeGenCommon.LoadHierarchy()
static void main(java.lang.String[] args)
          Deprecated. Use CodeGenCmdLine instead.
 void paint(java.awt.Graphics g)
           
 void RingBell()
          Ring a bell to indicate an error if it has been more than 2.5 seconds since the last error.
 void run()
          Old VisualJ THREAD SUPPORT The run() method is called when the applet's thread is started.
 void RunScriptFile(java.lang.String new_script_file)
          Run a .gen script file.
 void set_ClassList(FastListPanelInterface flp)
          Set the ClassList.
 void set_inside_diagapplet(boolean b)
          Set the inside_diagapplet property, see CodeGenCommon.set_preserve_modules_hashtable()
 void set_m_ConfigFile(java.lang.String str)
          Set the configFile.
 void set_m_fStandAlone(boolean b)
          Set the m_fStandAlone property.
 void set_m_hierarchyFile(java.lang.String str)
          Set the hierarchyFile.
 void set_m_loadingPanel(URLLoadInfoPanelInterface lp)
          Set the loadingPanel.
 void set_m_modulesCountList(CountListInterface lst)
          Set modulesCountList.
 void set_m_modulesHashTable(java.util.Hashtable ht)
          Set the modulesHashTable.
 void set_preserve_modules_hashtable(boolean b)
          Set the preserve modules hashtable property, see CodeGenCommon.set_preserve_modules_hashtable()
 void set_serversHashtable(java.util.Hashtable ht)
          Set the serversHashTable.
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug_on

public static boolean debug_on
Set to true to have many fuctions print degub info to System.out.

Constructor Detail

CodeGen

public CodeGen()
Method Detail

set_m_fStandAlone

public void set_m_fStandAlone(boolean b)
Set the m_fStandAlone property. When the property is true the gui will not attempt to resize itself or parse applet options. Used only by the Design tool.

Parameters:
b -

RingBell

public void RingBell()
Ring a bell to indicate an error if it has been more than 2.5 seconds since the last error. (Time limit prevents long list of errors from being really annoying.)


GetParameter

public java.lang.String GetParameter(java.lang.String strName,
                                     java.lang.String[] args)
From old VisualJ STANDALONE APPLICATION SUPPORT The GetParameter() method is a replacement for the getParameter() method defined by Applet. This method returns the value of the specified parameter; unlike the original getParameter() method, this method works when the applet is run as a standalone application, as well as when run within an HTML page. This method is called by GetParameters(). ---------------------------------------------------------------------------

Parameters:
strName - name of parameter to retrieve
args - command line args if run from main()
Returns:
value corresponding to strName

GetParameters

public void GetParameters(java.lang.String[] args)
From old VisualJ STANDALONE APPLICATION SUPPORT The GetParameters() method retrieves the values of each of the applet's parameters and stores them in variables. This method works both when the applet is run as a standalone application and when it's run within an HTML page. When the applet is run as a standalone application, this method is called by the main() method, which passes it the command-line arguments. When the applet is run within an HTML page, this method is called by the init() method with args == null. ---------------------------------------------------------------------------

Parameters:
args - command line args if called from main()

main

public static void main(java.lang.String[] args)
Deprecated. Use CodeGenCmdLine instead.

Run the graphical tool.

Parameters:
args -

InitializeClassList

public void InitializeClassList()
                         throws java.lang.Exception
Used by RCS Design tool. Initializes the class list.

Throws:
java.lang.Exception

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getAppletInfo

public java.lang.String getAppletInfo()
Old VisualJ APPLET INFO SUPPORT: The getAppletInfo() method returns a string describing the applet's author, copyright date, or miscellaneous information. --------------------------------------------------------------------------

Overrides:
getAppletInfo in class java.applet.Applet

getParameterInfo

public java.lang.String[][] getParameterInfo()
Old VisualJ PARAMETER SUPPORT The getParameterInfo() method returns an array of strings describing the parameters understood by this applet. CodeGen Parameter Information: { "Name", "Type", "Description" }, --------------------------------------------------------------------------

Overrides:
getParameterInfo in class java.applet.Applet

init

public void init()
Overrides:
init in class java.applet.Applet

LoadHierarchy

public void LoadHierarchy()
                   throws java.lang.Exception
See CodeGenCommon.LoadHierarchy()

Throws:
java.lang.Exception

destroy

public void destroy()
Overrides:
destroy in class java.applet.Applet

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

RunScriptFile

public void RunScriptFile(java.lang.String new_script_file)
Run a .gen script file. The script file may contain a list of headers to parse in what order and which update/format files functions to generate to which output files in what order.

Parameters:
new_script_file -

run

public void run()
Old VisualJ THREAD SUPPORT The run() method is called when the applet's thread is started. If your applet performs any ongoing activities without waiting for user input, the code for implementing that behavior typically goes here. For example, for an applet that performs animation, the run() method controls the display of images. --------------------------------------------------------------------------

Specified by:
run in interface java.lang.Runnable

set_preserve_modules_hashtable

public void set_preserve_modules_hashtable(boolean b)
Set the preserve modules hashtable property, see CodeGenCommon.set_preserve_modules_hashtable()

Parameters:
b -

set_inside_diagapplet

public void set_inside_diagapplet(boolean b)
Set the inside_diagapplet property, see CodeGenCommon.set_preserve_modules_hashtable()

Parameters:
b -

set_m_hierarchyFile

public void set_m_hierarchyFile(java.lang.String str)
Set the hierarchyFile. Used only by Design tool.

Parameters:
str -

set_m_ConfigFile

public void set_m_ConfigFile(java.lang.String str)
Set the configFile. Used only by Design tool.

Parameters:
str -

set_m_modulesHashTable

public void set_m_modulesHashTable(java.util.Hashtable ht)
Set the modulesHashTable. Used only by Design tool.

Parameters:
ht -

set_serversHashtable

public void set_serversHashtable(java.util.Hashtable ht)
Set the serversHashTable. Used only by Design tool.

Parameters:
ht -

set_m_loadingPanel

public void set_m_loadingPanel(URLLoadInfoPanelInterface lp)
Set the loadingPanel. Used only by Design tool.

Parameters:
lp -

set_ClassList

public void set_ClassList(FastListPanelInterface flp)
Set the ClassList. Used only by Design tool.

Parameters:
flp -

set_m_modulesCountList

public void set_m_modulesCountList(CountListInterface lst)
Set modulesCountList. Used only by Design Tool.

Parameters:
lst -