Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Form


  private Display d;
  private String user, from;
 
  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);
View Full Code Here


  }
 
  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

    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);
    form.append(tb);
View Full Code Here

  public ProfileEdit(Display d, JabberProfile jp, RecordStore r) {
    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);
View Full Code Here

    this.ri = ri;
    this.ret = ret;
    this.nt = nt;
    ok = new Command("Rename", Command.EXIT, 0);
    close = new Command("Close", Command.OK, 0);
    form = new Form("Rename contact");
    form.addCommand(ok);
    form.addCommand(close);
    form.setCommandListener(this);
    String jid = ri.getJid();
    if(jid.indexOf("/")!=-1)
View Full Code Here

  public VolumeSetup(Display d, RosterList list) {
    super();
    this.d = d;
    this.list = list;
   
    form = new Form("Volume control");
    volume = new Gauge("Set current volume", true, 10, list.getProfile().getVolume()/10);
    form.append(volume);
    ok = new Command("Set", Command.BACK, 0);
    cancel = new Command("Cancel", Command.BACK, 1);
    form.addCommand(ok);
View Full Code Here

 
  public MailViewer(Display d, RosterList rl) {
    super();
    this.d = d;
    this.rl = rl;
    f = new Form("No new mail");
    exit = new Command("Close", Command.OK, 0);
    f.addCommand(exit);
    f.setCommandListener(this);
   
    /*
 
View Full Code Here

        /* Have defaults to make Netbeans emulator testing easier
           as you do not have to add the entries everywhere. */
        if ( loading == null) {
          loading = "Loading...";
        }
        Form loadForm = new Form(loading);
        String loadingItems = super.getAppProperty(
              "resourceproviderme-text-l-items");
        if ( loadingItems == null) {
          loadingItems = "Loading items...";
        }
        loadForm.append(loadingItems);
        //#ifndef DLOGGING
        setCurrent( loadForm );
        //#endif
      }

View Full Code Here

      title = getItemDescription(item.getDescription());
    }
    //#ifdef DTEST
//@    m_itemForm = new PromptForm( this, title );
    //#else
    m_itemForm = new Form( title );
    //#endif
    final boolean pageEnabled = m_appSettings.getPageEnabled();
    final boolean htmlEnabled = m_appSettings.getHtmlEnabled();
    int fontSize = pageEnabled ? getFontSize() : 0;
    m_itemForm.addCommand( m_backCommand );
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Form

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.