Examples of OutputElement


Examples of com.cfinkel.reports.generatedbeans.OutputElement

        Map<String, List> reportData = this.report.runNewSearch(this);
        this.cachedData = new HashMap<String,List>();

        for (String outputName : this.report.getOutputs().keySet()) {
            Output output = this.report.getOutputs().get(outputName);
            OutputElement outputElement = output.getOutputElement();

            if (!outputElement.isValueList()) {
                // remove any adapter that may have been present from before:
                this.valueListAdapters.remove(outputName);

                List outputData = reportData.get(outputName);
                if ((outputElement.getMaxRowsForCache() <= 0) ||
                        outputElement.getMaxRowsForCache() > outputData.size()) {
                    // cache all data:
                    this.cachedData.put(outputName,outputData);
                } else if (outputData.size() == outputElement.getMaxRowsForDisplayTag()) {
                    // use valuelist:
                    createAndAddAdapter(output,parameterMap);
                } else {
                    // no cached data
                    // remove cachedData:
View Full Code Here

Examples of com.cfinkel.reports.generatedbeans.OutputElement

     *
     *
     * @return The file name.
     */
    public static String generateChart(List data, Output output, HttpSession session, PrintWriter printWriter) throws BadDataForChartException {
        OutputElement outputElement = output.getOutputElement();
        IntervalXYDataset dataset = createDataset(data);
        JFreeChart chart = ChartFactory.createXYBarChart(
                outputElement.getName(),
                "X",
                false,
                "Y",
                dataset,
                PlotOrientation.VERTICAL,
View Full Code Here

Examples of com.cfinkel.reports.generatedbeans.OutputElement

     * @param session
     * @param printWriter
     * @return filename
     */
    public static String generateBarChart(List data, Output output, HttpSession session, PrintWriter printWriter) throws BadDataForChartException {
        OutputElement outputElement = output.getOutputElement();
        // convert data:
        DefaultCategoryDataset  dataset = createDefaultCategoryDataSet(data);

        boolean showLegend = shouldIShowLegend(data);

        JFreeChart chart = ChartFactory.createBarChart(
                outputElement.getName(),         // chart title
                "",               // domain axis label
                "",                  // range axis label
                dataset,                  // data
                PlotOrientation.VERTICAL, // orientation
                showLegend,                     // include legend
View Full Code Here

Examples of com.google.gxp.compiler.base.OutputElement

  public OutputElement tag(ElementValidator validator,
                           DocType docType,
                           List<Attribute> attributes,
                           List<String> bundles,
                           Expression content) {
    return new OutputElement(pos(), "<" + validator.getTagName() + ">",
                             htmlSchema(), htmlSchema(), validator.getTagName(),
                             validator, docType, attributes, bundles, null,
                             content);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.OutputElement

      List<String> bundles = getBundles(attrMap);

      List<Attribute> attrs = attrMap.getUnusedAttributes();
      output.accumulate(
          new OutputElement(node.getSourcePosition(),
                            node.getDisplayName(),
                            node.getSchema(),
                            innerSchema,
                            validator.getTagName(),
                            validator,
View Full Code Here

Examples of com.google.gxp.compiler.base.OutputElement

      List<String> bundles = getBundles(attrMap);

      List<Attribute> attrs = attrMap.getUnusedAttributes();
      output.accumulate(
          new OutputElement(node.getSourcePosition(),
                            node.getDisplayName(),
                            node.getSchema(),
                            innerSchema,
                            validator.getTagName(),
                            validator,
View Full Code Here

Examples of com.odiago.flumebase.exec.OutputElement

      LOG.warn("Null node in plan graph");
      return;
    } else if (node instanceof OutputNode) {
      OutputNode outputNode = (OutputNode) node;
      String logicalFlumeNode = outputNode.getFlumeNodeName();
      newElem = new OutputElement(newContext,
          (Schema) outputNode.getAttr(PlanNode.INPUT_SCHEMA_ATTR),
          outputNode.getInputFields(), mFlumeConfig, logicalFlumeNode,
          (Schema) outputNode.getAttr(PlanNode.OUTPUT_SCHEMA_ATTR),
          outputNode.getOutputFields(), mRootSymbolTable);
      if (null != logicalFlumeNode) {
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.