|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
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
MenuPage s and PageItem s. |
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
MenuPage s, PageItem s 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 .
|
The bluegammon.gui.menu
package is a standalone package for drawing
menus on a canvas in J2ME.
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 PageItem
s 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:
PageItem
constructor, by setting the subPage
argument
to the MenuPage
to go to if that particular PageItem
is selected
and activated.
ItemAction
. The implementation is set as action
to each PageItem
of the menu. The action then uses the gotoPage
method in the Menu
to navigate further when an item is selected and activated.
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |