Examples of render()


Examples of com.google.test.metric.report.chart.PieGraph.render()

    out.printf("      Analyzed classes: %5d%n", total);
    out.printf(" Excellent classes (.): %5d %5.1f%%%n", excellentCount, 100f * excellentCount / total);
    out.printf("      Good classes (=): %5d %5.1f%%%n", goodCount, 100f * goodCount / total);
    out.printf("Needs work classes (@): %5d %5.1f%%%n", needsWorkCount, 100f * needsWorkCount / total);
    PieGraph graph = new PieGraph(50, new CharMarker('.', '=', '@'));
    String chart = graph.render(excellentCount, goodCount, needsWorkCount);
    out.printf("             Breakdown: [%s]%n", chart);
  }

  public void printDistribution(int rows, int width) {
    TextHistogram histogram = new TextHistogram(width, rows, new Marker() {
View Full Code Here

Examples of com.google.visualization.datasource.render.CsvRenderer.render()

        // Now with out:tsv-excel;
        dataSourceRequest = new DataSourceRequest(
                new DataSourceParameters("out:csv;reqId:7"));
        assertEquals(
                "\"column1\",\"column2\",\"column3\"\n7,false,\"Why?\"\n",
                csv.render(dataSourceRequest, dataTable));
    }

    public void testVerifyAccessApprovedTest() throws DataSourceException {
        HttpServletRequest req = createNiceMock(HttpServletRequest.class);
View Full Code Here

Examples of com.google.visualization.datasource.render.JsonRenderer.render()

                        + "\"table\":{\"cols\":[{\"id\":\"col1\",\"label\":\"column1\","
                        + "\"type\":\"number\",\"pattern\":\"\"},"
                        + "{\"id\":\"col2\",\"label\":\"column2\",\"type\":\"boolean\",\"pattern\":\"\"},"
                        + "{\"id\":\"col3\",\"label\":\"column3\",\"type\":\"string\",\"pattern\":\"\"}],"
                        + "\"rows\":[{\"c\":[{\"v\":7.0},{\"v\":false},{\"v\":\"Why?\"}]}]}}",
                json.render(dataSourceRequest, dataTable));

        // With reqId:666;
        dataSourceRequest = new DataSourceRequest(
                new DataSourceParameters("reqId:666"));
        assertEquals(
View Full Code Here

Examples of com.google.visualization.datasource.render.JsonpRenderer.render()

                        + "\"table\":{\"cols\":[{\"id\":\"col1\",\"label\":\"column1\","
                        + "\"type\":\"number\",\"pattern\":\"\"},"
                        + "{\"id\":\"col2\",\"label\":\"column2\",\"type\":\"boolean\",\"pattern\":\"\"},"
                        + "{\"id\":\"col3\",\"label\":\"column3\",\"type\":\"string\",\"pattern\":\"\"}],"
                        + "\"rows\":[{\"c\":[{\"v\":7.0},{\"v\":false},{\"v\":\"Why?\"}]}]}});",
                jsonp.render(dataSourceRequest, dataTable));

        TsvRenderer tsv = new TsvRenderer();
        // Now with out:csv;
        dataSourceRequest = new DataSourceRequest(
                new DataSourceParameters("out:tsv-excel"));
View Full Code Here

Examples of com.google.visualization.datasource.render.TsvRenderer.render()

        // Now with out:csv;
        dataSourceRequest = new DataSourceRequest(
                new DataSourceParameters("out:tsv-excel"));
        assertEquals(TsvRenderer.BYTE_ORDER_MARK +
                "\"column1\"\t\"column2\"\t\"column3\"\n7\tfalse\t\"Why?\"\n",
                tsv.render(dataSourceRequest, dataTable));

        CsvRenderer csv = new CsvRenderer();
        // Now with out:tsv-excel;
        dataSourceRequest = new DataSourceRequest(
                new DataSourceParameters("out:csv;reqId:7"));
View Full Code Here

Examples of com.gwtext.client.widgets.Component.render()

  public void setInfoBubble(Widget widget) {
    if (widget instanceof Component) {
      Component component = (Component) widget;
      if (!component.isRendered()) {
        WidgetComponent.createHiddenDiv();
        component.render(WidgetComponent.hiddenDivID);
      }
    } else {
      if (!widget.isAttached()) {
        WidgetComponent.createHiddenDiv();
        RootPanel.get(WidgetComponent.hiddenDivID).add(widget);
View Full Code Here

Examples of com.gwtplatform.carstore.client.application.manufacturer.ui.ManufacturerRenderer.render()

        if (carDto == null) {
            return "";
        }

        ManufacturerRenderer manufacturerRenderer = new ManufacturerRenderer();
        String manufacturer = manufacturerRenderer.render(carDto.getManufacturer());

        return manufacturer + " " + carDto.getModel();
    }
}
View Full Code Here

Examples of com.inmethod.grid.IRenderable.render()

              "Lightweight columns must return valid IRenderable instance in newCell(IModel model)");
        }
        response.write("<div class=\"");
        response.write(getInnerDivClass(column));
        response.write("\">");
        renderable.render(getDefaultModel(), response);
        response.write("</div>");
      } else {
        // for non-lightweight components get the actual component and render it
        Component component = get(column.getId());
        if (component == null) {
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Engine.render()

            final Engine renderEngine = engines.get(extension);

            if (renderEngine == null) {
                next.handle("No engine registered for extension: " + extension);
            } else {
                renderEngine.render(template, context, new AsyncResultHandler<Buffer>() {
                    @Override
                    public void handle(AsyncResult<Buffer> asyncResult) {
                        if (asyncResult.failed()) {
                            next.handle(asyncResult.cause());
                        } else {
View Full Code Here

Examples of com.jfinal.core.Controller.render()

        Controller controller = ai.getController();
        if(controller.getSessionAttr("user") != null){
            ai.invoke();
        }else{
            controller.setAttr("msg", "需要登录才可以进行改操作:)");
            controller.render("/user/login.html");
        }
    }
}
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.