// 6/30/10 M. Brenner import javax.microedition.lcdui.*; public class AppCommands extends Commands { static public final int CONNECT = 0, DISCONNECT = 1, EXIT = 2, HELPORABOUT = 3, SETUP = 4, SHOWLOG = 5, NUMCOMMANDS = 6; static private Appcommand commands_[]; static { ////////////////////////////////////////////////////////////////////////// // Create commands... // // // // NOTE: DO NOT COMMENT OUT ANY COMMANDS. That is, don't leave any // // holes in the array or the program WILL crash!!! // ////////////////////////////////////////////////////////////////////////// commands_ = new Appcommand[NUMCOMMANDS]; commands_[CONNECT] = new Commandconnect (NOKEY, NONEXT, UNIKEY); commands_[DISCONNECT] = new Commandisconnect (NOKEY, NONEXT, UNIKEY); commands_[EXIT] = new Commandexit (Canvas.KEY_NUM0, NONEXT, UNIKEY); commands_[HELPORABOUT] = new Commandhelporabout (NOKEY, NONEXT, UNIKEY); commands_[SETUP] = new Commandsetup (NOKEY, NONEXT, UNIKEY); commands_[SHOWLOG] = new Commandshowlog (Canvas.KEY_POUND, NONEXT, UNIKEY); } public AppCommands (Displayable disp) { super (disp, commands_); } }