The MIDlet allows you to view all the demonstrations of different UI elements and element properties that eSWT offers. The following figure shows the main view of the MIDlet and examples of specific UI element demo views.
Figure: MIDlet main view and two demo views
The main view of the MIDlet consists of a menu that lists all the available elements. When the user selects an element from the menu, the MIDlet calls the class showcasing that element and a demo of the element is displayed.
The MIDlet consists of the following main classes:
eSWTShowcase
—MIDlet main class, which creates
and runs a new MainMenuScreen
object.
MainMenuScreen
—Handles the main menu, and
its init
method creates the list of elements to showcase.
DemoModuleListBoxItem
—Extends ListBoxItem
and is used to hold the element
demo modules. The class constructor takes the demo module as a parameter,
and the runDemo
method calls the module's runDemo
method.
DemoModule
and DemoModuleGroup
—The DemoModule
interface is implemented by all
the classes that display element demos. The DemoModuleGroup
class is used to group together individual element demos.
SWTMIDlet
and UIThreadSupportWrapper
—Helper classes used in conjunction with eSWT. For more information,
see section Example: Creating a simple eSWT MIDlet.
For information about implementing the MIDlet, see section Implementation.