Motorola MOTORAZR maxx V6 Developer's Manual page 158

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

Java ME Developer Guide
Chapter 22 - Network APIs
public static Form regForm;
public static Form unregForm;
public static Form mainForm;
public static Form messageForm;
public static Command exitCommand;
public static Command backCommand;
public static Command unregCommand;
public static Command regCommand;
public static TextField regConnection;
public static TextField regFilter;
public static ChoiceGroup registeredConnsCG;
public static String[] registeredConns;
public static Command mc;
public static Displayable ms;
public PushTest_1(){
regConnection = new TextField("Connection port:", "1000", 32, Text-
Field.PHONENUMBER);
regFilter = new TextField("Filter:", "*", 32, TextField.ANY);
display = Display.getDisplay(this);
regForm = new Form("Register");
unregForm = new Form("Unregister");
mainForm = new Form("PushTest_1");
messageForm = new Form("PushTest_1");
exitCommand = new Command("Exit", Command.EXIT, 0);
backCommand = new Command("Back", Command.BACK, 0);
unregCommand = new Command("Unreg", Command.ITEM, 1);
regCommand = new Command("Reg", Command.ITEM, 1);
mainForm.append("Press \"Reg\" softkey to register a new connection.\n" +
"Press \"Unreg\" softkey to unregister a connection.");
mainForm.addCommand(exitCommand);
mainForm.addCommand(unregCommand);
mainForm.addCommand(regCommand);
mainForm.setCommandListener(this);
regForm.append(regConnection);
regForm.append(regFilter);
DRAFT - Subject to Change
[158/201]

Advertisement

Table of Contents
loading

Table of Contents