Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.TextField


    m_getFeedTitleList = false;
    m_listParser = null;
    if(url.length()==0) {
      url = "http://";
    }
    m_feedListURL = new TextField("URL", url, 256, TextField.URL);
    super.append(m_feedListURL);
   
    m_importFormatGroup = new ChoiceGroup("Format", ChoiceGroup.EXCLUSIVE,
    new String[] {"OPML", "line by line"
        //#ifndef DSMALLMEM
        , "HTML OPML Auto link", "HTML RSS Auto links"
        , "HTML Links"
        //#endif
        },
        null);
    super.append(m_importFormatGroup);
   
    m_feedNameFilter = new TextField("Name filter string (optional)", "", 256, TextField.ANY);
    super.append(m_feedNameFilter);
    m_feedURLFilter = new TextField("URL filter string (optional)", "", 256, TextField.ANY);
    super.append(m_feedURLFilter);
   
    final String username = m_appSettings.getImportUrlUsername();
    m_feedListUsername  = new TextField("Username (optional)", username, 64, TextField.ANY);
    super.append(m_feedListUsername);
   
    final String password = m_appSettings.getImportUrlPassword();
    m_feedListPassword  = new TextField("Password (optional)", password, 64, TextField.PASSWORD);
    super.append(m_feedListPassword);
    m_importTitleGroup  = new ChoiceGroup("Missing title (optionl)",
        ChoiceGroup.EXCLUSIVE,
        new String[] {"Skip feed with missing title",
         "Get missing titles from feed"}, null);
View Full Code Here


        }
       
        /** Copy link to clipboard.  */
        if( c == m_copyLinkCmd ){
      String link = citem.getLink();
      m_itemForm.set(citemLnkNbr, new TextField("Link:", link,
          link.length(), TextField.URL));
      //#ifdef DMIDP10
      setCurrent(m_itemForm);
      //#else
      setCurrentItem(m_itemForm.get(citemLnkNbr));
      //#endif
        }
       
        /** Copy enclosure to clipboard.  */
        if( c == m_copyEnclosureCmd ){
      final String link = citem.getEnclosure();
      m_itemForm.set(citemEnclNbr, new TextField("Enclosure:",
                link, link.length(), TextField.URL));
      //#ifdef DMIDP10
      setCurrent(m_itemForm);
      //#else
      setCurrentItem(m_itemForm.get(citemEnclNbr));
View Full Code Here

    private TextField   m_bmPassword;       // The RSS feed password field

    /* Constructor */
    private BMForm(final boolean addForm) {
      super(addForm ? "New Bookmark" : "Edit Bookmark");
      m_bmName = new TextField("Name", "", 64, TextField.ANY);
      m_bmURL  = new TextField("URL", "http://", 256, TextField.URL);
      m_bmUsername  = new TextField("Username (optional)", "", 64, TextField.ANY);
      m_bmPassword  = new TextField("Password (optional)", "", 64, TextField.PASSWORD);
      super.append( m_bmName );
      super.append( m_bmURL );
      super.append( m_bmUsername );
      super.append( m_bmPassword );
      if (addForm) {
View Full Code Here

    )
    {
        super( null );
        setController( new PromptController() );

        textField = new TextField( null,
                                   null,
                                   maxSize,
                                   constraints
        );
View Full Code Here

        "Press '*' to reset the board or skip to a random level. Have fun!" ),
      new StringItem( "Version: ", VERSION )
    } );
    helpForm.addCommand( backCommand );
    helpForm.setCommandListener( this );
    levelField = new TextField( "Level", "1", 3, TextField.NUMERIC );
    levelForm = new Form( "Select Level", new Item[] { levelField } );
    levelForm.addCommand( okCommand );
    levelForm.addCommand( backCommand );
    levelForm.setCommandListener( this );
    warehouseCanvas.addCommand( quitCommand );
View Full Code Here

    statusText.addContent(rl.getProfile().getStatus().equals("")?"<No status text>":rl.getProfile().getStatus());
    statusText.finish();
    form.append(statusText);
//    form.append(new ImageItem(rl.getProfile().getStatus(), RosterItem.getImageByStatus(rl.getProfile().getStatusID()), ImageItem.LAYOUT_EXPAND, rl.getProfile().getStatusStr().equals("")?
//        "online" : rl.getProfile().getStatusStr()));
    tf = new TextField("Input status: ", rl.getProfile().getStatus(), 255, TextField.ANY);
    form.append(tf);
    status = new ChoiceGroup("Select status: ", ChoiceGroup.EXCLUSIVE);

    online = 0;
    status.append("Set custom", RosterItem.online);
View Full Code Here

    statusHolder = new RichText(d);
    statusHolder.setCanvasWidth(roster.getRoster().getWidth());
    System.out.println("MessageForm "+roster.getRoster().getWidth());
    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);
View Full Code Here

    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);
    d.setCurrent(form);
    // TODO Auto-generated constructor stub
  }
View Full Code Here

    f.addCommand(c2);
    f.addCommand(c3);
    f.addCommand(c1);
    f.setCommandListener(this);
//    f.append(new StringItem(null, "Profile name:"));
    name = new TextField("Profile name:", j.getName(), 20, 0);
   
    host = new TextField("Host name:", j.getHost(), 20, 0);
   
    port = new TextField("Port:", ""+j.getPort(), 5, 0);
    port.setConstraints(TextField.NUMERIC);
   
    histLength = new TextField("Chat history length:", ""+j.getHistLength(), 3, 0);
    histLength.setConstraints(TextField.NUMERIC);
   
    user = new TextField("User name:", j.getUser(), 40, 0);

    pass = new TextField("Password:", j.getPass(), 40, 0);
    pass.setConstraints(TextField.PASSWORD);

    status = new TextField("Status text:", j.getStatus(), 40, 0);
    String[] s = {"Yes"};
    ssl = new ChoiceGroup("SSL?", ChoiceGroup.MULTIPLE, s, null);
    ssl.setSelectedIndex(0, j.getSsl()!=0);
    auto = new ChoiceGroup("Auto connect", ChoiceGroup.MULTIPLE, s, null);
    auto.setSelectedIndex(0, j.getAuto()!=0);
View Full Code Here

      jid = jid.substring(0, jid.indexOf("/"));
    }
    /*
     * If jid contains resource information - cut it
     * */
    tb = new TextField("Set new name for contact "+jid, ri.getName(), 50, TextField.EMAILADDR);
    form.append(tb);
    d.setCurrent(form);
  }
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.TextField

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.