userInterface.interfaceUtility
Class Shell

java.lang.Object
  extended by userInterface.interfaceUtility.Format
      extended by userInterface.interfaceUtility.Shell

public class Shell
extends Format

Generation of the shell.

Author:
03chowch

Field Summary
static java.lang.String SCRIPTFILE
           
static java.lang.String STYLEFILE
           
static int TOTALHEIGHT
           
static int TOTALWIDTH
           
 
Constructor Summary
Shell()
           
 
Method Summary
static java.lang.StringBuffer genShell(java.lang.String[][][] navInfo, java.lang.String link)
          Generate the shell of the webpage with the specified navigation menus.
 
Methods inherited from class userInterface.interfaceUtility.Format
alignCloseTag, alignOpenTag, alignTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLEFILE

public static final java.lang.String STYLEFILE
See Also:
Constant Field Values

SCRIPTFILE

public static final java.lang.String SCRIPTFILE
See Also:
Constant Field Values

TOTALWIDTH

public static final int TOTALWIDTH
See Also:
Constant Field Values

TOTALHEIGHT

public static final int TOTALHEIGHT
See Also:
Constant Field Values
Constructor Detail

Shell

public Shell()
Method Detail

genShell

public static java.lang.StringBuffer genShell(java.lang.String[][][] navInfo,
                                              java.lang.String link)
Generate the shell of the webpage with the specified navigation menus. Depending on the data given by the navInfo, the number of navigation menu would be created. By default only the top navigation menu is being created. To add additional navigation menu, author needs to modify the 'MODIFY HERE TO ADD EXTRA NAVIGATIONAL MENU' section.

Parameters:
navInfo - - the info to create the navigation menus. This is a three dimensional String array, where the first dimension is the number of sets of links in the navigation section, the second dimension is the number of links, and the third dimension is always 2. navInfo is a triplet data set where it is of the form [nav num][name][link] navInfo[0-3][][] - the first index ranges from 0 to 3 since there is a max of 4 differen nagivation menu but a min of 1 navInfo[][variable][] - the second index is variable because the range depends the number of name and link pair that exist in a nav. navInfo[][][0-1]- the third index has a range from 0-1, 0 for name, 1 for link
link - - link to default page that gets loaded
Returns: