generator
Class Generator

java.lang.Object
  extended by generator.Generator

public class Generator
extends java.lang.Object

Generator

This is the generator manager. This method is to be used if the generator is called from within Cismo, or if the generator's user interface is desired.

Copyright(c) 2005 Université Laval, LSFM research group.

Version:
1.0
Author:
Frédérick Lemay

Constructor Summary
Generator(javax.swing.JFrame parent)
          Creates a new generator window attached to the parent frame.
 
Method Summary
 void activate()
          Used to display the main window
 java.io.File getLastGeneratedFile()
          Fetch the last succesfully generated file
static void main(java.lang.String[] args)
          This method will be invoked if only the generator is built.
 void setListener(GeneratorEngineListener listener)
          Add a listener to the generator engine
static java.io.File showGeneratorDialog(javax.swing.JFrame parent)
          This static method open a new generator window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator(javax.swing.JFrame parent)
Creates a new generator window attached to the parent frame.

Parameters:
parent - the parent frame to which the dialog is attached
Method Detail

activate

public void activate()
Used to display the main window


getLastGeneratedFile

public java.io.File getLastGeneratedFile()
Fetch the last succesfully generated file

Returns:
the last succesfully generated file

setListener

public void setListener(GeneratorEngineListener listener)
Add a listener to the generator engine

Parameters:
listener - the listener to add

showGeneratorDialog

public static java.io.File showGeneratorDialog(javax.swing.JFrame parent)
This static method open a new generator window

Parameters:
parent - the frame to which the generator window is attached
Returns:
the file name of the last succesful generation

main

public static void main(java.lang.String[] args)
This method will be invoked if only the generator is built.

Parameters:
args - Any argument provided on command line.