org.gjt.universe
Class GUIFactory

java.lang.Object
  |
  +--org.gjt.universe.GUIFactory
Direct Known Subclasses:
GUIFactoryJFC, GUIFactoryOne, GUIFactoryText

public abstract class GUIFactory
extends java.lang.Object


Field Summary
private  java.util.Hashtable editors
           
static int GUITypeJFC
           
static int GUITypeOne
           
static int GUITypeText
           
private static GUIFactory singleton
          Singleton Instance
private static CivID viewer
          Civ "viewing" this screen.
 
Constructor Summary
protected GUIFactory()
           
 
Method Summary
abstract  void clearStatusArea()
           
abstract  void errorMessage(java.lang.String errorMessage)
          Display error message
abstract  void gameOptionsProcessed()
           
abstract  void getAlphaOptions()
          Get Alpha options
protected  GUIEditor getEditor(DBType type)
          Return the editor prototype for the DBType.
protected  GUIEditor getEditor(Index idx)
          Return the editor prototype for the Index class
static GUIFactory getInstance()
          Returns the singleton instance
abstract  javax.swing.JFrame getJFrame()
           
 java.lang.Object getToolBar()
           
static CivID getViewer()
           
static void init()
          Initialize the GUI.
abstract  void launchResultsScreen()
           
abstract  void messageListWindow(java.util.Vector messages)
           
 void registerEditor(DBType type, GUIEditor editor)
          Register an editor prototype to handle a certain DBType.
abstract  void showEditor(Index idx)
          Show an editor for the item referred by an Index.
abstract  void showMainWindow()
           
abstract  void showStartupOptions()
          Prompts for game options
 void shutDown()
          Shutdown routine
abstract  void statusLine(java.lang.String statusMessage, boolean refresh)
          Display line to status area
abstract  void updateCivInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUITypeText

public static final int GUITypeText
See Also:
Constant Field Values

GUITypeJFC

public static final int GUITypeJFC
See Also:
Constant Field Values

GUITypeOne

public static final int GUITypeOne
See Also:
Constant Field Values

viewer

private static CivID viewer
Civ "viewing" this screen.


singleton

private static GUIFactory singleton
Singleton Instance


editors

private java.util.Hashtable editors
Constructor Detail

GUIFactory

protected GUIFactory()
Method Detail

init

public static void init()
Initialize the GUI. If this method is called when the GUI is initialized,


getViewer

public static CivID getViewer()

showStartupOptions

public abstract void showStartupOptions()
Prompts for game options


errorMessage

public abstract void errorMessage(java.lang.String errorMessage)
Display error message


statusLine

public abstract void statusLine(java.lang.String statusMessage,
                                boolean refresh)
Display line to status area


clearStatusArea

public abstract void clearStatusArea()

updateCivInfo

public abstract void updateCivInfo()

getJFrame

public abstract javax.swing.JFrame getJFrame()

showMainWindow

public abstract void showMainWindow()

getInstance

public static GUIFactory getInstance()
Returns the singleton instance


shutDown

public void shutDown()
Shutdown routine


getAlphaOptions

public abstract void getAlphaOptions()
Get Alpha options


launchResultsScreen

public abstract void launchResultsScreen()

getToolBar

public java.lang.Object getToolBar()

gameOptionsProcessed

public abstract void gameOptionsProcessed()

messageListWindow

public abstract void messageListWindow(java.util.Vector messages)

registerEditor

public void registerEditor(DBType type,
                           GUIEditor editor)
Register an editor prototype to handle a certain DBType.


showEditor

public abstract void showEditor(Index idx)
Show an editor for the item referred by an Index. This method should be overridden as desired by the subclasses, to wrap the GUIEditor returned by getEditor according to the subclass of GUIFactory.


getEditor

protected GUIEditor getEditor(DBType type)
Return the editor prototype for the DBType.


getEditor

protected GUIEditor getEditor(Index idx)
Return the editor prototype for the Index class



Copyright © 2001 Universe Dev Team All Rights Reserved.