Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Command


  private TextField levelField;
  private List gameList;

  public Warehouse() throws Exception {
    String[] games = readCatalog( "/warehouse/levels/levels.cat" );
    okCommand = new Command( "OK", Command.OK, 1 );
    backCommand = new Command( "Back", Command.BACK, 1 );
    quitCommand = new Command( "Quit", Command.EXIT, 1 );
    undoCommand = new Command( "Undo", Command.SCREEN, 1 );
    gameCommand = new Command( "Select Game", Command.SCREEN, 2 );
    levelCommand = new Command( "Select Level", Command.SCREEN, 3 );
    resetCommand = new Command( "Reset Level", Command.SCREEN, 4 );
    nextCommand = new Command( "Next Level (#)", Command.SCREEN, 5 );
    randomCommand = new Command( "Random Level (*)", Command.SCREEN, 6 );
    clearCommand = new Command( "Clear Game Data", Command.SCREEN, 7 );
    helpCommand = new Command( "Help", Command.SCREEN, 8 );
    gameList = new List( "Select Game", List.IMPLICIT, games, null );
    gameList.addCommand( backCommand );
    gameList.setCommandListener( this );
    warehouseCanvas = new WarehouseCanvas( "/warehouse/levels/" + games[ 0 ] + ".lev" )
    helpForm = new Form( "Warehouse", new Item[] {
View Full Code Here


      */   
    }


    form.append(status);
    ok = new Command("Ok", Command.BACK, 0);
    exit = new Command("Cancel", Command.BACK, 0);
    form.addCommand(ok);
    form.addCommand(exit);
    form.setCommandListener(this);
    d.setCurrent(form);
    /*
 
View Full Code Here

    statusHolder.addImage(RosterItem.getImageByStatus(0));
    statusHolder.finish();
    tb = new TextField(null, "", 2000, TextField.ANY);
    form.append(statusHolder);
    form.append(tb);
    send = new Command("Send", Command.EXIT, 0);
    form.addCommand(send);
    toList = new Command("Roster", Command.OK, 0);
    quote = new Command("Quote", Command.ITEM, 0);
    form.addCommand(toList);
    form.setCommandListener(this);
    // TODO Auto-generated constructor stub
  }
View Full Code Here

      rs = RecordStore.openRecordStore("jabberRecords", true);
    } catch (Exception e) {
      e.printStackTrace();
    }
    this.d = d;
    c2 = new Command("Edit", Command.BACK, 0);
    c1 = new Command("Close client", Command.BACK, 1);
    l = new List("Profile list", List.IMPLICIT);
    l.addCommand(c1);
    l.addCommand(c2);
    l.append("Add new...", RosterItem.offline);
    try {
View Full Code Here

 
  public RequestAuth(Display d, NetworkThread nt, Displayable disp, String user, String from) {
    super();
    form = new Form("Request");
    form.append(new StringItem("User "+user+" requests authorization. Add user to roster?", null));
    ok = new Command("Add", Command.EXIT, 0);
    cancel = new Command("Deny", Command.OK, 0);
    form.addCommand(ok);
    form.addCommand(cancel);
    form.setCommandListener(this);
    ret = disp;
    this.user = user;
View Full Code Here

    return instance;
  }
 
  private ConnectLog() {
    super();
    close = new Command("Close session", Command.OK, 0);
    form = new Form("Network log");
    form.setCommandListener(this);
    form.addCommand(close);
  }
View Full Code Here

  public LogViewer(Display d, RosterList rl) {
    super();
    this.d = d;
    this.rl = rl;
    f = new Form("Log:");
    exit = new Command("Roster", Command.OK, 0);
    f.addCommand(exit);
    f.setCommandListener(this);
    // TODO Auto-generated constructor stub
  }
View Full Code Here

  public ContactAdd(Display d, Displayable ret, NetworkThread nt) {
    super();
    this.d = d;
    this.ret = ret;
    this.nt = nt;
    ok = new Command("Add", Command.EXIT, 0);
    close = new Command("Close", Command.OK, 0);
    form = new Form("Add contact");
    form.addCommand(ok);
    form.addCommand(close);
    form.setCommandListener(this);
    tb = new TextField("Type user's JID here", "", 50, TextField.EMAILADDR);
View Full Code Here

  }
 
  public void init()
  {
    d.setCurrent(roster);
    quit = new Command("Close session", Command.BACK, 6);
    roster.addCommand(quit);

    delete = new Command("Delete", Command.BACK, 4);
    roster.addCommand(delete);

    add = new Command("Add", Command.BACK, 2);
    roster.addCommand(add);

    status = new Command("Status", Command.BACK, 0);
    roster.addCommand(status);

    mail = new Command("Mailbox", Command.BACK, 1);
    roster.addCommand(mail);

    rename = new Command("Rename", Command.BACK, 3);
    roster.addCommand(rename);

    volume = new Command("Volume", Command.BACK, 5);
    roster.addCommand(volume);

//    logC = new Command("Log", Command.BACK, 0);
//    roster.addCommand(logC);
View Full Code Here

    super();
    j = jp;
    rs = r;
    this.d = d;
    f = new Form("Jabber profile");
    c1 = new Command("Save", Command.CANCEL, 1);
    c2 = new Command("Delete", Command.OK, 0);
    c3 = new Command("Cancel", Command.OK, 0);
    f.addCommand(c2);
    f.addCommand(c3);
    f.addCommand(c1);
    f.setCommandListener(this);
//    f.append(new StringItem(null, "Profile name:"));
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Command

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.