org.gswing.components.common
Class AbstractMainMenu

java.lang.Object
  extended by org.gswing.components.common.AbstractMainMenu

public abstract class AbstractMainMenu
extends Object

Purpose: Abstract class used for creating command line applications that require GUI input.


Constructor Summary
AbstractMainMenu(String path)
          Set up the Importer.
 
Method Summary
abstract  void displayMainMenu()
          Display the users main options.
 void displayMenu()
          Determines whether to display menu or wait until this thread is woken up.
protected  String getPath()
          Get the home path of gswing.
protected static void setReDisplay(boolean reDisplay)
          Sets whether the display should be re-displayed.
protected static void setWaiting(boolean waiting)
          Sets whether the menu should wait for user input.
 void wait(boolean wait)
          Tells this thread to wait or to continue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMainMenu

public AbstractMainMenu(String path)
Set up the Importer.

Parameters:
path - The home path of gSwing.
Method Detail

displayMainMenu

public abstract void displayMainMenu()
Display the users main options.


displayMenu

public void displayMenu()
Determines whether to display menu or wait until this thread is woken up.


wait

public void wait(boolean wait)
Tells this thread to wait or to continue.

Parameters:
wait - Whether this thread should wait or continue.

setReDisplay

protected static void setReDisplay(boolean reDisplay)
Sets whether the display should be re-displayed.

Parameters:
reDisplay - Should this menu re-display?

setWaiting

protected static void setWaiting(boolean waiting)
Sets whether the menu should wait for user input.

Parameters:
waiting - Should this menu wait for input?

getPath

protected String getPath()
Get the home path of gswing.

Returns:
Gswing home path.


Copyright © 2008. All Rights Reserved.