fi.hut.tml.xsmiles
Class GUIManager

java.lang.Object
  extended byfi.hut.tml.xsmiles.GUIManager

public class GUIManager
extends java.lang.Object

This class manages switching of GUIs. The initiation is done with the java.lang.reflect classes, so that we don't have to even have all the GUIs, for the system to function. GUI configuration stuff in config.xml

Version:
$Revision: 5863 $
Author:
Juha, Niklas von Knorring, Teemu Ropponen

Field Summary
 java.lang.String currentGUI
           
 java.lang.String initialGUI
           
 int numGUIs
           
 
Constructor Summary
GUIManager(BrowserWindow browser)
          Constructs GUI class.
 
Method Summary
 void createMainGUI()
          Creates the initial GUI
 void createMainGUI(boolean b)
           
protected  void destroyOldGui()
          nullify? why?
 ComponentFactory getComponentFactory()
           
 GUI getCurrentGUI()
           
 java.lang.String getCurrentGUIName()
           
 java.util.Vector getGUINames()
           
 int getNumGUIs()
           
 java.util.Vector getThemeNames()
           
 void setCurrentGUIName(java.lang.String s)
          Set the preferences of the GUI to a title corresponding the name in the configuration file.
 void showGUI(java.lang.String guiName)
           
 void showGUI(java.lang.String guiName, boolean reload)
          Destroy old GUI, init new one and issue GUIChangedEvent so that MLFC's remember to update their MLFCToolboxes to the new gui
 void showGUI(java.lang.String guiName, boolean reload, boolean destroyOld)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numGUIs

public int numGUIs

initialGUI

public java.lang.String initialGUI

currentGUI

public java.lang.String currentGUI
Constructor Detail

GUIManager

public GUIManager(BrowserWindow browser)
Constructs GUI class.

Parameters:
browser - reference to the main BrowserWindow object
Method Detail

showGUI

public void showGUI(java.lang.String guiName,
                    boolean reload)
Destroy old GUI, init new one and issue GUIChangedEvent so that MLFC's remember to update their MLFCToolboxes to the new gui

Parameters:
guiName - The name of the gui (see config.xml)
reload - Reload document after gui visible

showGUI

public void showGUI(java.lang.String guiName,
                    boolean reload,
                    boolean destroyOld)

showGUI

public void showGUI(java.lang.String guiName)

createMainGUI

public void createMainGUI()
Creates the initial GUI


createMainGUI

public void createMainGUI(boolean b)

destroyOldGui

protected void destroyOldGui()
nullify? why?


getCurrentGUI

public GUI getCurrentGUI()
Returns:
The current GUI

getGUINames

public java.util.Vector getGUINames()
Returns:
Vector of all gui Names

getThemeNames

public java.util.Vector getThemeNames()
Returns:
Theme names in vector

getNumGUIs

public int getNumGUIs()
Returns:
the Number of GUIs

getCurrentGUIName

public java.lang.String getCurrentGUIName()

setCurrentGUIName

public void setCurrentGUIName(java.lang.String s)
Set the preferences of the GUI to a title corresponding the name in the configuration file. Only needed, if the browser is run without a GUI, and special constraints are wanted for the browser content area.

Parameters:
s - The title of the GUI corresponding to the one in config.xml

getComponentFactory

public ComponentFactory getComponentFactory()


X-Smiles 1.2