Examples of render()


Examples of javax.swing.text.StyledDocument.render()

                }

            }

            Operation oper = new Operation();
            bDoc.render(oper);
        }

    },jTextComponent);

    }
View Full Code Here

Examples of jetbrick.template.JetTemplate.render()

        String bodyContent = ctx.getBodyContent();
        ctx.getContext().put("bodyContent", bodyContent);

        file = ctx.getPageContext().getAbsolutionName(file);
        JetTemplate template = ctx.getEngine().getTemplate(file);
        template.render(context, ctx.getWriter());
    }

    /**
     * 将一个 Block 的内容保存到一个 JetContext 变量中。
     *
 
View Full Code Here

Examples of jj.play.ns.nl.captcha.text.renderer.DefaultWordRenderer.render()

                        text = getText();
                    }
                    BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
                    DefaultWordRenderer renderer = new DefaultWordRenderer(textColor, fonts);
                    bi = background.addBackground(bi);
                    renderer.render(text, bi);
                    if (noise != null) {
                        new CurvedLineNoiseProducer(noise, 3.0f).makeNoise(bi);
                    }
                    gimpy.gimp(bi);
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here

Examples of jodd.madvoc.result.ActionResult.render()

    // finally, invoke result
    if (madvocConfig.isPreventCaching()) {
      ServletUtil.preventCaching(actionRequest.getHttpServletResponse());
    }

    actionResult.render(actionRequest, resultObject);
  }

  // ---------------------------------------------------------------- create

  /**
 
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.renderer.ExcelRenderer.render()

        Display.getDefault().getActiveShell(), SWT.SAVE);
    dialog.setFilterExtensions(new String[] { "*.xls" });
    String path = dialog.open();
    if (path != null) {
      ExcelRenderer renderer = new ExcelRenderer();
      byte[] data = renderer.render(results);

      FileOutputStream out = null;
      try {
        out = new FileOutputStream(path);
        out.write(data);
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.renderer.Renderer.render()

        throw new RuntimeException(format + " is invalid format!");
      }

      DiffFolderResult result = DiffCounter.count(olddir, srcdir);

      byte[] bytes = renderer.render(result);

      try {
        output.write(bytes);

      } finally {
View Full Code Here

Examples of juzu.impl.router.RouteMatch.render()

            // Render base URL
            http.renderRequestURL(appendable);

            // Render path
            UriBuilder writer = new UriBuilder(appendable, mimeType);
            match.render(writer);

            // Retain matched parameters for filtering later
            Set<String> matched = match.getMatched().isEmpty() ? Collections.<String>emptySet() : new HashSet<String>(match.getMatched().size());
            for (PathParam param : match.getMatched().keySet()) {
              matched.add(param.getName());
View Full Code Here

Examples of juzu.impl.template.spi.TemplateStub.render()

  public void render(TemplateRenderContext context, Renderable body, Map<String, String> args) throws IOException {
    InsertTag.current.get().addLast(body);
    try {
      String path = args.get("path");
      TemplateStub template = context.resolveTemplate(path);
      template.render(context);
    }
    finally {
      InsertTag.current.get().removeLast();
    }
  }
View Full Code Here

Examples of juzu.template.Renderable.render()

  public void render(TemplateRenderContext context, Renderable body, Map<String, String> args) throws IOException {
    Renderable body_ = current.get().peekLast();
    if (body_ != null) {
      current.get().removeLast();
      try {
        body_.render(context);
      }
      finally {
        current.get().addLast(body);
      }
    }
View Full Code Here

Examples of juzu.template.TemplateRenderContext.render()

  public void render(String text, Map<String, Object> attributes, Locale locale, Appendable appendable) throws IOException, TemplateExecutionException, TemplateException {
    GroovyTemplateStub template = template(text);
    TemplateRenderContext renderContext = new TemplateRenderContext(template, null, attributes, locale);
    OutputStream adapter = OutputStream.create(Tools.UTF_8, appendable);
    renderContext.render(adapter);
    final AtomicReference<IOException> ios = new AtomicReference<IOException>();
    adapter.close(new Thread.UncaughtExceptionHandler() {
      public void uncaughtException(Thread t, Throwable e) {
        if (e instanceof IOException) {
          ios.set((IOException)e);
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.