Class ModuleGeneratorDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----ModuleGeneratorDialog

public class ModuleGeneratorDialog
extends Dialog
Automatically generate the intermediate java and C(++) files necessary for calling a C module. Furthermore this class contains a method that gives the module developer directions of what to do after the intermediate files are generated.

Version:
$Revision: 1.2 $

Variable Index

 o cancelButton
 o dirFileField
 o jcCheckbox
 o jCheckbox
 o module
 o moduleName
 o parent
 o saveFilesButton
 o suggestionFileField

Constructor Index

 o ModuleGeneratorDialog(Frame, Module)
Generate the java and C intermediate files and give directions for the module developer.

Method Index

 o cancelButtonPressed()
The cancel button is pressed and the dialog is hidden.
 o main(String[])
 o makeAndSaveModules(boolean, String, String)
Save the java template file or the intermediate files plus suggestion file.
 o saveFile(Frame, String, File)
If the file that needs to be saved already exists a popup window is created and the user can select the filename it want to save to.
 o saveFile(Frame, String, String)

Variables

 o saveFilesButton
 private Button saveFilesButton
 o cancelButton
 private Button cancelButton
 o dirFileField
 private FileFieldGBL dirFileField
 o suggestionFileField
 private FileFieldGBL suggestionFileField
 o jcCheckbox
 Checkbox jcCheckbox
 o jCheckbox
 Checkbox jCheckbox
 o parent
 private Frame parent
 o module
 private Module module
 o moduleName
 private String moduleName

Constructors

 o ModuleGeneratorDialog
 ModuleGeneratorDialog(Frame parent,
                       Module module)
Generate the java and C intermediate files and give directions for the module developer.

Methods

 o cancelButtonPressed
 void cancelButtonPressed()
The cancel button is pressed and the dialog is hidden.

 o makeAndSaveModules
 void makeAndSaveModules(boolean javaCModule,
                         String moduleDirectory,
                         String suggestionFilename)
Save the java template file or the intermediate files plus suggestion file. If they already exist a 'popup' save file dialog will appear.

 o saveFile
 public File saveFile(Frame parent,
                      String title,
                      String filename) throws FileNotFoundException, IOException
See Also:
saveFile
 o saveFile
 public File saveFile(Frame parent,
                      String title,
                      File file) throws FileNotFoundException, IOException
If the file that needs to be saved already exists a popup window is created and the user can select the filename it want to save to.

 o main
 public static void main(String args[])