TextMenu

abstract
class TextMenu : ITextMenu (
inputStreamT
outputStreamT
keyT
) {
inputStreamT inputStream;
outputStreamT outputStream;
MenuItem[keyT] menuItems;
}

Members

Functions

addItem
void addItem(MenuItem item, keyT key)

Associates the given item with the given key in this menu.

removeAllItems
void removeAllItems()

Removes all items from this menu.

removeItem
void removeItem(keyT key)

Removes the menu item associated with key. If no item was associated with such key, nothing happens.

run
void run()

Starts the menu.

Inherited Members

From ITextMenu

run
void run()

Runs the menu

write
void write(string s)

Writes the argument to the output of the menu

writeln
void writeln(string s)

Writes the argument plus a line terminator to the output of the menu

readln
string readln()

Reads a line from the input of the menu

Meta