Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoin.gui
Class GUIManager  view GUIManager download GUIManager.java

java.lang.Object
  extended byrecoin.gui.GUIManager
All Implemented Interfaces:
ProcedureManager

public class GUIManager
extends java.lang.Object
implements ProcedureManager

The GUIManager represents the component that controls and delivers all GUI components of the application.

It uses a ProcFrame to execute different procedures like start and stop procedures. Any parameters provided by the user during these procedures are collected in a Hashtable in the GUIManager and used, for example, to start the RuntimeManager.

Version:
0.2.9

Field Summary
private  recoin.system.ApplicationManager applicationManager
          The ApplicationManager.
private  int CURRENT_PROC
          The current procedure.
(package private) static org.apache.log4j.Logger logger
          The logger for this class.
private  MainFrame mainFrame
          The main console of the application.
private  ContentPanelStorage panelStorage
          The ContentPanelStorage object that provides the panels for the different procedures.
private  ProcFrame procFrame
          The ProcFrame to execute a procedure.
static int START_PROC
          Class variable representing the start procedure.
static int STOP_PROC
          Class variable representing the stop procedure.
 
Constructor Summary
GUIManager(recoin.system.ApplicationManager aManager)
          Creates a new GUIManager with the specified ApplicationManager.
 
Method Summary
 void abort()
          Aborts by displaying the main dialog.
 SubmitSubPanel createSubmitSubPanel()
          Returns a new SubmitSubPanel that contains a summary of the selected parameters of the current procedure.
 void endOfProcedure(java.util.Hashtable parameters)
          Called by the ProcFrame object to signal the end of a procedure.
 void executeProcedure(int proc)
          Executes the specified procedure.
 int getCurrentProcedure()
          Returns the int for the currently executed procedure.
 void showMainDialog()
          Shows the main frame of the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
The logger for this class.


START_PROC

public static final int START_PROC
Class variable representing the start procedure.

See Also:
Constant Field Values

STOP_PROC

public static final int STOP_PROC
Class variable representing the stop procedure.

See Also:
Constant Field Values

CURRENT_PROC

private int CURRENT_PROC
The current procedure.


panelStorage

private ContentPanelStorage panelStorage
The ContentPanelStorage object that provides the panels for the different procedures.


procFrame

private ProcFrame procFrame
The ProcFrame to execute a procedure.


mainFrame

private MainFrame mainFrame
The main console of the application.


applicationManager

private recoin.system.ApplicationManager applicationManager
The ApplicationManager.

Constructor Detail

GUIManager

public GUIManager(recoin.system.ApplicationManager aManager)
Creates a new GUIManager with the specified ApplicationManager.

Method Detail

executeProcedure

public void executeProcedure(int proc)
Executes the specified procedure.


getCurrentProcedure

public int getCurrentProcedure()
Returns the int for the currently executed procedure.


showMainDialog

public void showMainDialog()
Shows the main frame of the application.


endOfProcedure

public void endOfProcedure(java.util.Hashtable parameters)
Called by the ProcFrame object to signal the end of a procedure. Depending on the procedure which was executed different actions are taken.

Specified by:
endOfProcedure in interface ProcedureManager

createSubmitSubPanel

public SubmitSubPanel createSubmitSubPanel()
Returns a new SubmitSubPanel that contains a summary of the selected parameters of the current procedure.

Specified by:
createSubmitSubPanel in interface ProcedureManager

abort

public void abort()
Aborts by displaying the main dialog.

Specified by:
abort in interface ProcedureManager