MenuItemclass | menusys.t[275], menucon.t[44], menuweb.t[16] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
To display a menu tree, call displayMenu() on the top menu in the tree. That routine displays the menu and processes user input until the user dismisses the menu, automatically displaying submenus as necessary.
Modified in menucon.t[44]:
Menu Item - user interface implementation for the console
Modified in menuweb.t[16]:
Menu Item - user interface implementation for the console
class
MenuItem : MenuObject
MenuItem
MenuObject
object
MenuItem
HintMenu
TopHintMenu
MenuLongTopicItem
HintLongTopicItem
InstructionsMenu
MenuTopicItem
Goal
bgcolor
curKeyList
curMenu
fgcolor
fullScreenMode
heading
indent
isOpen
keyList
prevMenuLink
title
topbarbg
topbarfg
topMenu
Inherited from MenuObject
:
contents
menuOrder
display
enterSubMenu
formatXML
getChildIndex
getKeysXML
getNextMenu
getPrevMenu
getXML
refreshTopMenuBanner
removeStatusLine
removeTopMenuBanner
showMenu
showMenuHtml
showMenuText
showTopMenuBanner
updateContents
Inherited from MenuObject
:
addToContents
compareForMenuSort
execute
initializeContents
initializeLocation
bgcolor | menusys.t[311] |
curKeyList | menusys.t[354] |
curMenu | menuweb.t[41] |
fgcolor | menusys.t[310] |
fullScreenMode | menusys.t[328] |
heading | menusys.t[283] |
indent | menusys.t[322] |
isOpen | menuweb.t[45] |
keyList | menusys.t[347] |
[quit, previous, up, down, select]
Since multiple keys can be used for the same navigation, the list is implemented as a List of Lists. Keys must be given as lower-case in order to match input, since we convert all input keys to lower-case before matching them.
In the sublist for each key, we use the first element as the key name we show in the instruction bar at the top of the screen.
By default, we use our parent menu's key list, if we have a parent; if we have no parent, we use the standard keys from the library messages.
prevMenuLink | menusys.t[363] |
title | menusys.t[277] |
topbarbg | menusys.t[319] |
topbarfg | menusys.t[318] |
topMenu | menuweb.t[42] |
display ( ) | menucon.t[51], menuweb.t[23] |
Modified in menuweb.t[23]:
Call menu.display when you're ready to show the menu. This should be called on the top-level menu; we run the entire menu display process, and return when the user exits from the menu tree.
enterSubMenu (idx) | menuweb.t[61] |
formatXML (func) | menuweb.t[146] |
getChildIndex (child) | menusys.t[409] |
getKeysXML (buf) | menuweb.t[119] |
getNextMenu (menu) | menusys.t[379] |
getPrevMenu (menu) | menusys.t[396] |
getXML (from) | menuweb.t[87] |
refreshTopMenuBanner (topMenu) | menucon.t[486] |
removeStatusLine ( ) | menucon.t[557] |
removeTopMenuBanner ( ) | menucon.t[538] |
showMenu (from) | menuweb.t[48] |
showMenuHtml (topMenu) | menucon.t[262] |
showMenuText (topMenu) | menucon.t[129] |
Returns true if we should return to the parent menu, nil if the user selected QUIT to exit the menu system entirely.
showTopMenuBanner (topMenu) | menucon.t[457] |
updateContents ( ) | menusys.t[371] |