Menu modules are fully supported in the JDAPI by the class MenuModule
.
These modules correspond to an actual .mmb
file. A Menu module
contains menu objects (class Menu
) which in turn can contain menu
items (class MenuItem
).
Menu modules can be treated like any other module. For example, you can create, save, compile, and modify Menu modules, and navigate them in either a generic or explicit fashion. The only special case is for managing menu roles.
The constructor and the key classes in the MenuModule
class are:
public MenuModule(java.lang.String name)
constructor used
to create MenuModule
objects public void compile()
compiles the menu module to the
file systempublic JdapiIterator getMenus()
retrieves an iterator
over the menu objects owned by this menu modulepublic void save(java.lang.String fileName)
saves the
menu module to the file system