|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
org.openbandy.ui.MainMenu
public class MainMenu
This class represents the main menu of an openbandy MIDlet. It holds a hash
table of all the main screens that make up an application.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
| Field Summary | |
|---|---|
static javax.microedition.lcdui.Display |
display
|
| Fields inherited from class javax.microedition.lcdui.List |
|---|
SELECT_COMMAND |
| Fields inherited from interface javax.microedition.lcdui.Choice |
|---|
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON |
| Constructor Summary | |
|---|---|
MainMenu(javax.microedition.midlet.MIDlet midlet,
javax.microedition.lcdui.Display display)
Create a main menu screen |
|
| Method Summary | |
|---|---|
void |
addScreen(BandyDisplayable displayable)
Add a (BandyDisplayable) screen to the list of main menu entries. |
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
|
| Methods inherited from class javax.microedition.lcdui.List |
|---|
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, getTicker, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, setTitle, size |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
addCommand, getHeight, getTitle, getWidth, isShown, setCommandListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static javax.microedition.lcdui.Display display
| Constructor Detail |
|---|
public MainMenu(javax.microedition.midlet.MIDlet midlet,
javax.microedition.lcdui.Display display)
midlet - Reference to the current MIDlet instancedisplay - Reference to the current display instance| Method Detail |
|---|
public void addScreen(BandyDisplayable displayable)
displayable - BandyDisplayable screen that should be listed in the main menu
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
commandAction in interface javax.microedition.lcdui.CommandListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||