/*
* stringItemlet.java
*
* Created on 2005年4月14日, 下午4:26
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
*
* @author Administrator
* @version
*/
public class stringItemlet extends MIDlet implements CommandListener,
ItemCommandListener{
private Form aform;
private Command okCommand;
private Command exitCommand;
private Command hllinkCommand;
private Command bCommand;
private Display aDisplay;
private StringItem hlstringItem;
private StringItem bstringItem;
private Alert hlAlert;
private Alert bAlert;
public stringItemlet(){
okCommand=new Command("OK",Command.OK,1);
exitCommand=new Command("EXIT",Command.EXIT,1);
hllinkCommand=new Command("LINK",Command.ITEM,2);
bCommand=new Command("BUTTON",Command.ITEM,2);
aform=new Form("StringItemTest");
//if click hyperlink "here",display anAlert
hlstringItem=new StringItem(null,"here",Item.HYPERLINK);