Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Item


        ByteArrayOutputStream();
    DataOutputStream dout = new
        DataOutputStream( bout );
    for (int ic = 0; ic < items.length; ic++) {
      try {
        final Item item = items[ic];
        if (item instanceof ChoiceGroup) {
          dout.writeInt(((ChoiceGroup)item).getSelectedIndex());
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("stored selected " + item.getLabel() + "," + ((ChoiceGroup)item).getSelectedIndex());}
          //#endif
        } else if (item instanceof TextField) {
          final String value = ((TextField)item).getString();
          dout.writeInt(value.length());
          byte [] bvalue;
          try {
            bvalue = value.getBytes("UTF-8");
          } catch (UnsupportedEncodingException e) {
            bvalue = value.getBytes();
            //#ifdef DLOGGING
            logger.severe("cannot store value=" + value, e);
            //#endif
          }
          dout.write( bvalue, 0, bvalue.length );
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("set string " + item.getLabel() + "," + ((TextField)item).getString());}
          //#endif
        }
      } catch (IOException e) {
        //#ifdef DLOGGING
        logger.severe("IOException storing selected.", e);
View Full Code Here


        desc = title;
      }
    } else {
      descLabel = "Description\n";
    }
    Item descItem = getTextItem(pageEnabled, htmlEnabled, descLabel, desc,
        fontSize, false, m_itemForm, prevList);
    m_itemForm.append(descItem);
    citem = item;
    //#ifdef DITUNES
    if (m_itunesEnabled && (item.isItunes() || feed.isItunes())) {
View Full Code Here

                            i + 1
                );
            }
            if( view instanceof DataFormView && forItem )
            {
                final Item item = ((DataFormView) view).getItem(
                        actionDef.getFor()
                );
                final Action action = new Action(
                        actionName,
                        command,
View Full Code Here

        desc = title;
      }
    } else {
      descLabel = "Description\n";
    }
    Item descItem = getTextItem(pageEnabled, htmlEnabled, descLabel, desc,
        fontSize, false, m_itemForm, prevList);
    m_itemForm.append(descItem);
    citem = item;
    //#ifdef DITUNES
//@    if (m_itunesEnabled && (item.isItunes() || feed.isItunes())) {
View Full Code Here

    //#endif
    DataInputStream dis = new DataInputStream(
        new ByteArrayInputStream(bdata));
    for (int ic = 0; ic < items.length; ic++) {
      try {
        final Item item = items[ic];
        if (item instanceof ChoiceGroup) {
          ((ChoiceGroup)item).setSelectedIndex(dis.readInt(),
            true);
          //#ifdef DLOGGING
//@          if (finestLoggable) {logger.finest("set selected " + ((ChoiceGroup)item).getSelectedIndex());}
View Full Code Here

        ByteArrayOutputStream();
    DataOutputStream dout = new
        DataOutputStream( bout );
    for (int ic = 0; ic < items.length; ic++) {
      try {
        final Item item = items[ic];
        if (item instanceof ChoiceGroup) {
          dout.writeInt(((ChoiceGroup)item).getSelectedIndex());
          //#ifdef DLOGGING
//@          if (finestLoggable) {logger.finest("stored selected " + item.getLabel() + "," + ((ChoiceGroup)item).getSelectedIndex());}
          //#endif
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Item

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.