Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.TextField


        }
       
        /** 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

    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

        this.setCommandListener( this );
       
        RssReaderSettings settings = m_midlet.getSettings();
        int maxCount = settings.getMaximumItemCountInFeed();
       
        m_itemCountField = new TextField("Max item count in feed",
                String.valueOf(maxCount), 3, TextField.NUMERIC);
    //#ifdef DMIDP20
    m_itemCountField.setLayout(Item.LAYOUT_BOTTOM);
    //#endif
        super.append( m_itemCountField );

        m_markUnreadItems = UiUtil.getAddChoiceGroup(this,
        "Mark unread items", new String [] {"Mark", "No mark"});

    //#ifndef DSMALLMEM
        m_useTextBox = UiUtil.getAddChoiceGroup(this,
        "Text entry items", new String [] {"Text (large) box",
        "Text (line) field"});
    //#endif

        m_useStandardExit = UiUtil.getAddChoiceGroup(this,
        "Exit key type", new String [] {"Use standard exit key",
        "Use menu exit key"});

    //#ifdef DITUNES
//@        m_itunesEnabled = UiUtil.getAddChoiceGroup(this,
//@        "Choose to use Itunes data", new String []
//@        {"Don't show Itunes data", "Show Itunes data"});
    //#endif

    //#ifdef DMIDP20
        m_pageEnabled = UiUtil.getAddChoiceGroup(this,
        "Choose to use keypad and/get HTML emphasis for item screen",
        new String []
        {"Use commands to go back to previous screen",
        "Also use keypad to go back to previous screen",
        "Also use keypad (as previous) and emphasize HTML"});

        m_fontSize = UiUtil.getAddChoiceGroup(this,
        "Choose font size",
        new String[] {"Default font size", "Small",
        "Medium", "Large"});
    //#endif
        m_feedListOpen = UiUtil.getAddChoiceGroup(this,
        "Choose feed list menu first item", new String []
        {"Open item first", "Back first"});

        int maxWordCount = settings.getMaxWordCountInDesc();
        m_wordCountField = new TextField("Max word count desc abbrev",
                String.valueOf(maxCount), 3, TextField.NUMERIC);
    //#ifdef DMIDP20
    m_wordCountField.setLayout(Item.LAYOUT_BOTTOM);
    //#endif
        super.append( m_wordCountField );
View Full Code Here

        this.addCommand(sendCommand);
        this.addCommand(new Command("Exit", Command.EXIT, 1));
        this.setCommandListener(this);
       
        textBox = new TextBox("Rozmowa", null, 24000, 0);
        textField = new TextField("Wiadomosc", null, 256, 0);
       
        append(textField);
       
        this.bTMIDlet.getDisplay().setCurrent(this);
       
View Full Code Here

        String[] optionsActions = {"Join", "Create"};
        type = new ChoiceGroup("Choose an action.", ChoiceGroup.EXCLUSIVE, optionsActions, null);
        append(type);

        playerName = new TextField("Player Name:", "", 8, TextField.ANY);
        append(playerName);

        sessionName = new TextField("Session Name:", "", 8, TextField.ANY);

        stopSearch = new ChoiceGroup("Stop search when find first server?",
                                     ChoiceGroup.MULTIPLE);
        stopSearch.append("Yes", null);
        boolean[] a = {true};
View Full Code Here

        addCommand(cmdLoad);
        addCommand(cmdClose);
        setCommandListener(this);

        append(Localizer.getString("SiteLoad.Message"));
        append(txtUser = new TextField(Localizer.getString("SiteLoad.Username"), "", 256, TextField.ANY));
        append(txtPass = new TextField(Localizer.getString("SiteLoad.Password"), "", 256, TextField.ANY));
        load();
    }
View Full Code Here

  private TextField nameField;

  public EnterNameView() {
    super("Enter your name");
    nameField = new TextField("Enter your name","",32, TextField.ANY);
    append(nameField);
  }
View Full Code Here

  private int id;

  public MucusEditorView() {
    super("${mucus.editor}");
       
    name = new TextField("${mucus.description}","", 20, TextField.ANY);
    categories = new ChoiceGroup("${mucus.category}",
        ChoiceGroup.EXCLUSIVE, CATEGORY_NAMES, null);
       
    append(name);
    append(categories);
View Full Code Here

  public InputView() {
    super("${observation}");
    Log.log("InputView.InputView()");
    //#ifdef midp1.0
    temperatureField = new TextField("${temperature}", "", 5, TextField.NUMERIC);
    mucusChoise = new ChoiceGroup("${mucus}", ChoiceGroup.EXCLUSIVE, new String[0], null);
    //#else
    temperatureField = new TextField("${temperature}", "", 5, TextField.DECIMAL);
    mucusChoise = new ChoiceGroup("${mucus}", ChoiceGroup.POPUP, new String[0], null);
    //#endif
    refreshMucusList();

    append(periodTitle);
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.