Package net.sf.jlogmicro.util.logging

Examples of net.sf.jlogmicro.util.logging.Logger.finest()


      //#ifdef DLOGGING
      String line;
      for (; ((maxLines == 0) || (count < maxLines)) &&
          ((line = view.nextLine()) != null); count++) {
        //#ifdef DLOGGING
        if (finestLoggable) {logger.finest("estimateHeight count,line=" + count + "," + line);}
        //#endif
      }
      //#else
      for (; ((maxLines == 0) || (count < maxLines)) &&
          (view.nextLine() != null); count++) {
View Full Code Here


   */
    final public static Command getCmdRsc(String key, int commandType,
      int priority) {
    //#ifdef DLOGGING
    Logger logger = Logger.getLogger("UiUtil");
    logger.finest("key,commandType,priority=" + key + "," + commandType + "," + priority);
    //#endif
    return new Command(ResourceProviderME.get(key), commandType, priority);
  }

  /**
 
View Full Code Here

   */
    final public static Command getCmdRsc(String key, String lngkey,
      int commandType, int priority) {
    //#ifdef DLOGGING
    Logger logger = Logger.getLogger("UiUtil");
    logger.finest("key,lngkey,commandType,priority=" + key + "," + lngkey + "," + commandType + "," + priority);
    //#endif
    //#ifdef DMIDP20
    if (lngkey != null) {
      return new Command(ResourceProviderME.get(key),
          ResourceProviderME.get(lngkey), commandType, priority);
View Full Code Here

        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());}
          //#endif
        } else if (item instanceof TextField) {
          final int len = dis.readInt();
          byte [] bvalue = new byte[len];
          dis.read(bvalue);
View Full Code Here

            logger.severe("cannot convert value=" + value, e);
            //#endif
          }
          ((TextField)item).setString(value);
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("set string " + ((TextField)item).getString());}
          //#endif
        }
      } catch (IOException e) {
        //#ifdef DLOGGING
        logger.severe("IOException reading selected.", e);
View Full Code Here

      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;
View Full Code Here

            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

        logger.severe("IOException storing selected.", e);
        //#endif
      }
    }
    //#ifdef DLOGGING
    if (finestLoggable) {logger.finest("bout.toByteArray().length=" + bout.toByteArray().length);}
    //#endif
    if (dout != null) {
      try { dout.close(); } catch (IOException e) {}
    }
    return bout.toByteArray();
View Full Code Here

  public static void showAlert(MIDlet midlet, Alert alert,
      Displayable disp) {
    //#ifdef DLOGGING
    Logger logger = Logger.getLogger("UiUtil");
    logger.finest("alert,disp=" + alert.getString() + "," + alert.getType());
    //#endif
    if (alert.getType() == AlertType.CONFIRMATION) {
      //#ifdef DLOGGING
      logger.finest("Alert not displayed when type is CONFIRMATION, changing to INFO");
      //#endif
View Full Code Here

    Logger logger = Logger.getLogger("UiUtil");
    logger.finest("alert,disp=" + alert.getString() + "," + alert.getType());
    //#endif
    if (alert.getType() == AlertType.CONFIRMATION) {
      //#ifdef DLOGGING
      logger.finest("Alert not displayed when type is CONFIRMATION, changing to INFO");
      //#endif
      alert.setType(AlertType.INFO);
    }
    Display.getDisplay(midlet).setCurrent(alert, disp);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.