|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcli.TextMenu
public class TextMenu
Implements a menu system for the command line interface.
| Constructor Summary | |
|---|---|
TextMenu()
|
|
| Method Summary | |
|---|---|
private static void |
displayMenuOptions(java.lang.String[] menuOptions_)
Displays menu options. |
private static int |
getValidSelection(java.lang.String[] menuOptions_)
Gets valid selection from menu options. |
static int |
menu(java.lang.String[] menuOptions_)
Displays the Menu and returns the selection from it. |
private static void |
printInWidth(int value,
int size_)
Displays an int in width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextMenu()
| Method Detail |
|---|
public static int menu(java.lang.String[] menuOptions_)
menuOptions_ -
private static void displayMenuOptions(java.lang.String[] menuOptions_)
menuOptions_ - - string array of menu options.private static int getValidSelection(java.lang.String[] menuOptions_)
menuOptions_ - - string array of menu options.
private static void printInWidth(int value,
int size_)
value - of the intrequired - width to display the integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||