Examples of render()


Examples of net.sourceforge.pmd.renderers.HTMLRenderer.render()

      try
      {
         final FileWriter fileWriter = new FileWriter( new File( outputDirectory.getAbsolutePath()
               + "/" + FlexPMDFormat.HTML.toString() ) );

         renderer.render( fileWriter,
                          report );
         renderer.getWriter().flush();
         fileWriter.close();
      }
      catch ( final IOException e )
View Full Code Here

Examples of nextapp.echo2.app.StreamImageReference.render()

            if (!(imageReference instanceof StreamImageReference)) {
                throw new IOException("Image is not a StreamImageReference.");
            }
            StreamImageReference streamImageReference = (StreamImageReference) imageReference;
            conn.setContentType(new ContentType(streamImageReference.getContentType(), true));
            streamImageReference.render(conn.getOutputStream());
        } catch (IOException ex) {
            // Internet Explorer appears to enjoy making half-hearted requests for images, wherein it resets the connection
            // leaving us with an IOException.  This exception is silently eaten.
            // It would preferable to only ignore SocketExceptions, however the API documentation does not provide
            // enough information to suggest that such a strategy would be adequate..
View Full Code Here

Examples of nextapp.echo2.webrender.BaseHtmlDocument.render()

     */
    public void service(Connection conn) throws IOException {
        conn.setContentType(ContentType.TEXT_HTML);
        BaseHtmlDocument baseDoc = new BaseHtmlDocument("c_0");
        baseDoc.getBodyElement().appendChild(baseDoc.getDocument().createTextNode("New Instance"));
        baseDoc.render(conn.getWriter());
    }
}
View Full Code Here

Examples of nextapp.echo2.webrender.ServerMessage.render()

                serverMessage = renderUpdate(conn, clientMessageDocument);
                processUserInstanceUpdates(userInstance, serverMessage);
            }
            serverMessage.setTransactionId(userInstance.getNextTransactionId());
            conn.setContentType(ContentType.TEXT_XML);
            serverMessage.render(conn.getWriter());
        }
    }
   
    /**
     * Renders updates to <code>UserInstance</code> properties.
View Full Code Here

Examples of ninja.Result.render()

    @Test
    public void testAddingOfDefaultHeadersWorks() {

        Result result = Results.json();
        // just a new object as dummy...
        result.render(new Object());

        // make sure the stuff is not set by default json method (just in
        // case...)
        assertNull(result.getHeaders().get(Result.CACHE_CONTROL));
        assertNull(result.getHeaders().get(Result.DATE));
View Full Code Here

Examples of nl.captcha.text.renderer.DefaultWordRenderer.render()

  public CaptchaBean build() {
    // Add and render the text
    if (_txtProd != null) {
      _answer += _txtProd.getText();
      WordRenderer wr = new DefaultWordRenderer();
      wr.render(_answer, _img);
    }
   
    if (_noiseProd != null) {
      _noiseProd.makeNoise(_img);
    }
View Full Code Here

Examples of nl.captcha.text.renderer.WordRenderer.render()

  public CaptchaBean build() {
    // Add and render the text
    if (_txtProd != null) {
      _answer += _txtProd.getText();
      WordRenderer wr = new DefaultWordRenderer();
      wr.render(_answer, _img);
    }
   
    if (_noiseProd != null) {
      _noiseProd.makeNoise(_img);
    }
View Full Code Here

Examples of org.activiti.designer.property.extension.field.CustomPropertyField.render()

          switch (property.type()) {

          case TEXT:
            createdCustomPropertyField = new CustomPropertyTextField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
View Full Code Here

Examples of org.antlr.works.visualization.graphics.graph.GGraph.render()

    }

    private GGraph createGraph(String ruleName) throws Exception {
        GGraph graph = new GFactory().buildGraphsForRule(engine.getANTLRGrammarEngine(), ruleName);
        graph.setContext(context);
        graph.render(0,0);
        return graph;
    }

    public Color contextGetColorForLabel(String label) {
        if(label.charAt(0) == '\'' || label.charAt(0) == '"') {
View Full Code Here

Examples of org.apache.clerezza.platform.typerendering.Renderer.render()

      Renderer renderer = rendererFactory.createRenderer(docRootNode, null,
          Collections.singletonList(MediaType.APPLICATION_XHTML_XML_TYPE));
      FileOutputStream out = new FileOutputStream(outFile);
      try {
        System.out.println("writing " + outFile);
        renderer.render(docRootNode, docRootNode, null, null, null, null, new HashMap<String, Object>(), out);
      } finally {
        out.close();
      }
  }
}
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.