Examples of format()


Examples of com.insightfullogic.lambdabehave.impl.output.ConsoleFormatter.format()

        return Specifiers.finishSpecifying(mark);
    }

    public BehaveRunner printReport() {
        ReportFormatter formatter = new ConsoleFormatter();
        formatter.format(report);
        return this;
    }

    public Report getReport() {
        return report;
View Full Code Here

Examples of com.insightfullogic.lambdabehave.impl.output.ReportFormatter.format()

        return Specifiers.finishSpecifying(mark);
    }

    public BehaveRunner printReport() {
        ReportFormatter formatter = new ConsoleFormatter();
        formatter.format(report);
        return this;
    }

    public Report getReport() {
        return report;
View Full Code Here

Examples of com.jagpdf.ImageDef.format()

        imgdef.data(checker_bytes, img_dim * img_dim);
        imgdef.dimensions(img_dim, img_dim);
        imgdef.color_space(ColorSpaceType.CS_DEVICE_GRAY);
        imgdef.bits_per_component(8);
        imgdef.dpi(9, 9);
        imgdef.format(ImageFormat.IMAGE_FORMAT_NATIVE);
        Image img_custom = doc.image_load(imgdef);
        canvas.image(img_custom, 50, 310);
        //
        // bad format specification (tests exceptions as well)
        //
View Full Code Here

Examples of com.jpoweredcart.common.service.CurrencyService.format()

    UserAttributes userAttrs = (UserAttributes)WebUtils.getSessionAttribute(request, UserAttributes.NAME);
    String currencyCode = userAttrs.getCurrencyCode();
    /* Current year */
    int year = Calendar.getInstance().get(Calendar.YEAR);
   
    model.addAttribute("totalSale", c.format(
        orderAdminModel.getTotalSales(), currencyCode, null, userAttrs.getLanguageId()));
    model.addAttribute("totalSaleYear", c.format(
        orderAdminModel.getTotalSalesByYear(year), currencyCode, null, userAttrs.getLanguageId()));
   
    model.addAttribute("totalOrder", orderAdminModel.getTotal(new TotalOrdersFilter()));
View Full Code Here

Examples of com.kellerkindt.scs.interfaces.Balance.format()

           
            msg.add(Term.INFO_UNDO_2.get());
            msg.add(Term.INFO_UNDO_3.get());
            msg.add(Term.INFO_UNDO_4.get(player.getName(),       shop.getOwner()));
//            msg.add(Term.INFO_UNDO_5.get(activity.toString(),     shop.getItemName(), String.valueOf(quantity)));
            msg.add(Term.INFO_UNDO_6.get(balance.format(price),    balance.format(price * quantity)));
           
            if(timeLeft > 0) {
              msg.add(Term.INFO_UNDO_7.get(String.valueOf((Properties.maxUndoTime - (curTime - time)) / 1000)));
            } else {
              msg.add(Term.INFO_UNDO_8.get());
View Full Code Here

Examples of com.liferay.faces.alloy.component.inputfile.internal.PreviewTableTemplate.format()

      // Format the preview-table.html template and write it to the response.
      Locale locale = facesContext.getViewRoot().getLocale();
      String clientId = uiComponent.getClientId(facesContext);
      PreviewTableTemplate previewTableTemplate = getPreviewTableTemplate(facesContext);
      String previewTableHTML = previewTableTemplate.format(locale, clientId, false);
      responseWriter.write(previewTableHTML);

      // Finish encoding of the outermost <div> element.
      responseWriter.endElement(StringPool.DIV);
    }
View Full Code Here

Examples of com.liferay.faces.alloy.component.inputfile.internal.ProgressTableTemplate.format()

      String clientId = uiComponent.getClientId(facesContext);
      Locale locale = facesContext.getViewRoot().getLocale();

      if (inputFile.isShowProgress()) {
        ProgressTableTemplate progressTableTemplate = getProgressTableTemplate(facesContext);
        String progressTableHTML = progressTableTemplate.format(locale, clientId, inputFile.isAuto());
        responseWriter.write(progressTableHTML);
      }

      // Otherwise, delegate writing to the delegate renderer. Note that this effectively a no-op with Mojarra and
      // MyFaces, since they both delay writing of the entire <input type="file"...> ... </input> element until
View Full Code Here

Examples of com.liferay.faces.portal.component.inputrichtext.internal.WYSIWYGTemplate.format()

    responseWriter.endElement("textarea");

    // Encode the script that contains functions with names specific to this component, so that they can be
    // invoked directly by the JavaScript generated by the JSP tag.
    WYSIWYGTemplate wysiwygTemplate = getWYSIWYGTemplate(facesContext);
    String formattedTemplate = wysiwygTemplate.format(facesContext, inputRichText);
    responseWriter.startElement(StringPool.SCRIPT, uiComponent);
    responseWriter.writeAttribute(StringPool.TYPE, ContentTypes.TEXT_JAVASCRIPT, null);
    responseWriter.write(formattedTemplate);
    responseWriter.endElement(StringPool.SCRIPT);
View Full Code Here

Examples of com.meidusa.amoeba.sqljep.function.OracleNumberFormat.format()

      return (String)param1;
    }
    else if (param1 instanceof Number) {
      try {
        OracleNumberFormat format = new OracleNumberFormat((String)param2);
        return format.format((Number)param1);
      } catch (java.text.ParseException e) {
        throw new ParseException(e.getMessage());
      }
    }
    else if (param1 instanceof java.util.Date) {
View Full Code Here

Examples of com.meidusa.amoeba.sqljep.function.OracleTimestampFormat.format()

      }
    }
    else if (param1 instanceof java.util.Date) {
      try {
        OracleTimestampFormat format = new OracleTimestampFormat((String)param2, cal, symb);
        return format.format((java.sql.Timestamp)param1);
      } catch (java.text.ParseException e) {
        throw new ParseException(e.getMessage());
      }
    } else {
      throw new ParseException(TYPE_EXCEPTION);
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.