Package bluegammon.gui.menu

The bluegammon.gui.menu package is a standalone package for drawing menus on a canvas in J2ME.

See:
          Description

Interface Summary
ItemAction Command pattern interface that is called from Menu when user activates an PageItem.
MenuListener This interface is used by applications which need to receive high-level events concerning a Menu.
MenuPainter The MenuPainter interface defines high-level methods when drawing contents of a Menu, which consists of MenuPages and PageItems.
 

Class Summary
BinaryPageItem An abstract item that can be set to true or false.
DefaultMenuPainter A default implementation of MenuPainter.
Menu The Menu class takes care of coordination between MenuPages, PageItems and user interaction.
MenuPage A MenuPage class represents a title and a number of choices in a Menu.
PageItem The PageItem defines a choice in a MenuPage.
 

Package bluegammon.gui.menu Description

The bluegammon.gui.menu package is a standalone package for drawing menus on a canvas in J2ME.

Concepts and Structures

This package defines a user interface component visualizing a menu consisting of pages that have items. Each item can have an action.

The main class is the Menu. The Menu consists of a MenuPage as start page and a MenuPainter implementation. Each MenuPage have zero or several PageItems that defines possible choices per MenuPage. A PageItem can have one implementation of ItemAction, and/or a MenuPage as sub-page that will be navigated to when selecting and activating that item.
All implementations of ItemAction are invoked in a new thread on the activation of a PageItem.

The navigation tree of a menu can be defined in two ways: