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 $
-
cancelButton
-
-
dirFileField
-
-
jcCheckbox
-
-
jCheckbox
-
-
module
-
-
moduleName
-
-
parent
-
-
saveFilesButton
-
-
suggestionFileField
-
-
ModuleGeneratorDialog(Frame, Module)
- Generate the java and C intermediate files and give directions for the
module developer.
-
cancelButtonPressed()
- The cancel button is pressed and the dialog is hidden.
-
main(String[])
-
-
makeAndSaveModules(boolean, String, String)
- Save the java template file or the intermediate files plus
suggestion file.
-
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.
-
saveFile(Frame, String, String)
-
saveFilesButton
private Button saveFilesButton
cancelButton
private Button cancelButton
dirFileField
private FileFieldGBL dirFileField
suggestionFileField
private FileFieldGBL suggestionFileField
jcCheckbox
Checkbox jcCheckbox
jCheckbox
Checkbox jCheckbox
parent
private Frame parent
module
private Module module
moduleName
private String moduleName
ModuleGeneratorDialog
ModuleGeneratorDialog(Frame parent,
Module module)
- Generate the java and C intermediate files and give directions for the
module developer.
cancelButtonPressed
void cancelButtonPressed()
- The cancel button is pressed and the dialog is hidden.
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.
saveFile
public File saveFile(Frame parent,
String title,
String filename) throws FileNotFoundException, IOException
- See Also:
- saveFile
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.
main
public static void main(String args[])