Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.ChoiceGroup


      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);
    super.append(m_importTitleGroup);
    m_importHTMLGroup  =
      new ChoiceGroup("Treat HTML mime type as valid import (optional)",
        ChoiceGroup.EXCLUSIVE,
        new String[]
        {"Redirect if HTML (ignored for HTML link import)",
         "Treat HTML as import"}, null);
    m_importOvrGroup  = new ChoiceGroup(
        "Override existing feeds in place (optionl)",
        ChoiceGroup.EXCLUSIVE,
        new String[] {"Don't override existing feeds.",
         "Override (replace) existing feeds."},
        null);
View Full Code Here


    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);
    if(rl.getProfile().getStatusID()==0 && (rl.getProfile().getStatus().equals("") || !rl.getThread().isGoogle()))
      status.setSelectedIndex(online, true);
View Full Code Here

    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);

    String[] empty = {};
    sortBy = new ChoiceGroup("Sort by list", ChoiceGroup.EXCLUSIVE, empty, null);
    sortBy.append("Status, Name", null);
    sortBy.append("Name", null);
    sortBy.setSelectedIndex(0, j.getSortBy()==0);
    sortBy.setSelectedIndex(1, j.getSortBy()!=0);
   
    statusID = new ChoiceGroup("Initial status", ChoiceGroup.EXCLUSIVE, empty, null);
   
    statusID.append("Online", null);
    statusID.append("Away", null);
    statusID.append("XA", null);
    statusID.append("Busy", null);
   
    statusID.setSelectedIndex(0, j.getStatusID()==0);
    statusID.setSelectedIndex(1, j.getStatusID()==1);
    statusID.setSelectedIndex(2, j.getStatusID()==2);
    statusID.setSelectedIndex(3, j.getStatusID()==3);

    offline = new ChoiceGroup("Show offline users?", ChoiceGroup.MULTIPLE, s, null);
    offline.setSelectedIndex(0, j.getOffline()!=0);

    isGoogle = new ChoiceGroup("GTalk features?", ChoiceGroup.MULTIPLE, s, null);
    isGoogle.setSelectedIndex(0, j.getIsGoogle()!=0);

    lockStatus = new ChoiceGroup("GTalk  - disable status change by other clients?", ChoiceGroup.MULTIPLE, s, null);
    lockStatus.setSelectedIndex(0, j.getLockStatus()!=0);

    lockStatusStr = new ChoiceGroup("GTalk  - set status text after login?", ChoiceGroup.MULTIPLE, s, null);
    lockStatusStr.setSelectedIndex(0, j.getLockStatusStr()!=0);

    autoReconnect = new ChoiceGroup("Enable auto reconnect?", ChoiceGroup.MULTIPLE, s, null);
    autoReconnect.setSelectedIndex(0, j.getAutoReconnect()!=0);

    smiles = new ChoiceGroup("Show smiles?", ChoiceGroup.MULTIPLE, s, null);
    smiles.setSelectedIndex(0, j.getSmiles()!=0);

                useMyServer = new ChoiceGroup("GTalk - Use alternative server for Google authorization", ChoiceGroup.MULTIPLE, s, null);
    useMyServer.setSelectedIndex(0, j.getUseMyServer()!=0);

    volume = new Gauge("Set initial volume", true, 10, j.getVolume()/10);
   
    f.append(name);
View Full Code Here

      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);
    super.append(m_importTitleGroup);
    m_importHTMLGroup  =
      new ChoiceGroup("Treat HTML mime type as valid import (optional)",
        ChoiceGroup.EXCLUSIVE,
        new String[]
        {"Redirect if HTML (ignored for HTML link import)",
         "Treat HTML as import"}, null);
    m_importOvrGroup  = new ChoiceGroup(
        "Override existing feeds in place (optionl)",
        ChoiceGroup.EXCLUSIVE,
        new String[] {"Don't override existing feeds.",
         "Override (replace) existing feeds."},
        null);
View Full Code Here

   * @return    ChoiceGroup
   * @author Irv Bunton
   */
  static public ChoiceGroup getAddChoiceGroup(Form form, String label,
                        String[] choices) {
        ChoiceGroup choiceGroup = new ChoiceGroup(label,
                                    Choice.EXCLUSIVE, choices, null);
    //#ifdef DMIDP20
    choiceGroup.setLayout(Item.LAYOUT_BOTTOM);
    //#endif
        form.append( choiceGroup );
    return choiceGroup;
  }
View Full Code Here

    }

    private void createHeader() {

        String[] optionsTexts = {"Bluetooth", "Internet"};
        options = new ChoiceGroup("Chose type game.", ChoiceGroup.EXCLUSIVE, optionsTexts, null);
        append(options);

        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};
        stopSearch.setSelectedFlags(a);
        append(stopSearch);
View Full Code Here

                    connectServer(0);
                    return;
                }

                connect = new Command("Connect", Command.OK, 1);
                serverOptions = new ChoiceGroup("xUno ME Servers", ChoiceGroup.EXCLUSIVE);
                serversForm.set(0, serverOptions);
                serversForm.addCommand(connect);
                serversForm.addCommand(new Command("Back", Command.BACK, 2));
                serversForm.setCommandListener(this);
                for (int s = 0; s < infoServers.size(); s++) {
View Full Code Here

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

    private static ChoiceGroup getCallWithChoice()
    {
        if (callWithChoice == null)
        {
            callWithChoice = new ChoiceGroup("Call With", Choice.EXCLUSIVE);
            callWithChoice.insert(callWithData, "Data", null);
            callWithChoice.insert(callWithVoice, "Voice", null);
            callWithChoice.setSelectedIndex(callWith, true);
        }
        return callWithChoice;
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.ChoiceGroup

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.