userInterface.interfaceUtility
Class Navigation

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

public class Navigation
extends Format

Generate the nagivation menu depending on the tab info given. The tab info must be in a 2D array with the first column being the name of the tab and second column being the link.

Author:
03chowch

Field Summary
static int BOTTOMNAV
           
static int LEFTNAV
           
static int RIGHTNAV
           
static int TOPNAV
           
 
Constructor Summary
Navigation()
           
 
Method Summary
static java.lang.StringBuffer genNav(java.lang.String[][] tabInfo, int navType)
          Generate the navigation menu depending on type indicator and location indicator.
 
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

TOPNAV

public static final int TOPNAV
See Also:
Constant Field Values

BOTTOMNAV

public static final int BOTTOMNAV
See Also:
Constant Field Values

LEFTNAV

public static final int LEFTNAV
See Also:
Constant Field Values

RIGHTNAV

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

Navigation

public Navigation()
Method Detail

genNav

public static java.lang.StringBuffer genNav(java.lang.String[][] tabInfo,
                                            int navType)
Generate the navigation menu depending on type indicator and location indicator. Note: Null tab name would act as the menu separator. If menu is of the form: Nav1 Nav3 Empty Nav3 The navigation menu would have two tab (Nav1 and Nav2) on the left and one tab (Nav3) on the right.

Parameters:
tabInfo - - the menu info with first column being the name of the tab while second being the link
navType - - the navigational menu type either horizontal or vertical
Returns: