Package net.sf.jasperreports.crosstabs

Examples of net.sf.jasperreports.crosstabs.JRCrosstabDataset


  private void writeCrosstabDataset( JRCrosstab crosstab, String crosstabName)
  {
    if(crosstab != null)
    {
      String datasetName = crosstabName + "Dataset";
      JRCrosstabDataset dataset = crosstab.getDataset();
      write( "JRDesignCrosstabDataset " + datasetName + " = new JRDesignCrosstabDataset();\n");
      write( datasetName + ".setDataPreSorted({0});\n", dataset.isDataPreSorted(), false);
      writeElementDataset( dataset, datasetName);
      write( crosstabName + ".setDataset(" + datasetName + ");\n");
     
      flush();
    }
View Full Code Here


  }


  private void writeCrosstabDataset(JRCrosstab crosstab) throws IOException
  {
    JRCrosstabDataset dataset = crosstab.getDataset();
    writer.startElement(JRCrosstabDatasetFactory.ELEMENT_crosstabDataset);
    writer.addAttribute(JRCrosstabDatasetFactory.ATTRIBUTE_isDataPreSorted, dataset.isDataPreSorted(), false);
    writeElementDataset(dataset);
    writer.closeElement(true);
  }
View Full Code Here

  {
    collectElement(crosstab);

    createCrosstabId(crosstab);

    JRCrosstabDataset dataset = crosstab.getDataset();
    collect(dataset);

    JRExpressionCollector datasetCollector = getCollector(dataset);
    JRExpressionCollector crosstabCollector = getCollector(crosstab);
View Full Code Here

  private void verifyCrosstab(JRDesignCrosstab crosstab)
  {
    verifyReportElement(crosstab);
    verifyParameters(crosstab);

    JRCrosstabDataset dataset = crosstab.getDataset();
    if (dataset == null)
    {
      addBrokenRule("Crosstab dataset missing.", crosstab);
    }
    else
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.crosstabs.JRCrosstabDataset

Copyright © 2018 www.massapicom. 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.