The
MenuItem
class is the base class for ALL objects in the
Menu
package. Its main purpose is to provide the recursive functions necessary for managing a tree-like menu structure.
If you are interested in designing a new type of menu based on this structure, then you need to (a) create a Menu
subclass and (b) create a MenuItem
subclass. Your new Menu
subclass will handle the root-level layout and logic handling, while your MenuItem
subclass should draw itself and layout any sub-items it may have. See the examples within this package, all of which were designed in this way.
@author Greg