|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.FunSiPGui
public class FunSiPGui
This class consists of the building blocks for a graphical representation of the FunSiP program. Not only can FunSiPGui launch FunSiP from the GUI, it can also be used to edit configuration files or create new configuration files. This goal can be achieved by either giving all the values of a configuration file directly, or by using a wizard which delivers most of the available options in a nice and structured way. WARNING 1: The source-code of FunSiPGui is a spaghetti-mess, this has yet to be cleaned up, either by restructuring or by rewriting. WARNING 2: Because of its very tight connection with the FunSiP program itself, we have opted to give FunSiPGui the same version-code as FunSiP.
Constructor Summary | |
---|---|
FunSiPGui()
Constructor for the graphical framework. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.String |
createConfigurationFile(java.lang.String fileName)
Creates the configuration file, with the currently loaded SPRWorkflow object as content. |
FunSiPWorkflow |
getSPRWorkflow(java.lang.String fileName)
This method tries to create a FunSiPWorkflow object (one of the basic building blocks of FunSiP) from a given configuration file. |
static void |
main(java.lang.String[] args)
Main method for FunSiPGui. |
void |
setNewConfiguration(java.lang.String newConfigurationFile)
Sets a new configuration file as standard loaded configuration file. |
void |
setSprOutput(FunSiP spr,
SprOutputPanel output)
Changes the output of the supplied FunSiP program, according to the content of the output panel. |
void |
updateLabels()
Updates all the labels in the current frame of the gui, according to the new state in which it is positioned (e.g. after changing the content of a configuration file, but not saving it, the gui will change). |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunSiPGui()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The supplied commandline parameters.public FunSiPWorkflow getSPRWorkflow(java.lang.String fileName)
fileName
- The filename of the configuration file containing the data from
which the workflow-object should be built. Can be null, in which case a simple
and empty FunSipWorkflow will be returned.
public java.lang.String createConfigurationFile(java.lang.String fileName)
fileName
- The name of the configuration file
public void setSprOutput(FunSiP spr, SprOutputPanel output)
spr
- The FunSiP program from which the output should be changed. Can be
null, in which case nothing happens.output
- The content panel which has all the different options defined
as how the output can be changed. Can be null, in which case nothing happens.public void updateLabels()
public void setNewConfiguration(java.lang.String newConfigurationFile)
newConfigurationFile
- The name and location of the new configuration file.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |