Package net.sf.jasperreports.engine.util

Examples of net.sf.jasperreports.engine.util.JRXmlWriteHelper.closeElement()


    ListContents contents = list.getContents();
    writer.startElement("listContents");
    writer.addAttribute("height", contents.getHeight());
    writer.addAttribute("width", contents.getWidth());
    reportWriter.writeChildElements(contents);
    writer.closeElement();
   
    writer.closeElement();
  }

  protected void writeBarbecue(BarbecueComponent barcode, ComponentKey componentKey,
View Full Code Here


    writer.addAttribute("height", contents.getHeight());
    writer.addAttribute("width", contents.getWidth());
    reportWriter.writeChildElements(contents);
    writer.closeElement();
   
    writer.closeElement();
  }

  protected void writeBarbecue(BarbecueComponent barcode, ComponentKey componentKey,
      JRXmlWriter reportWriter) throws IOException
  {
View Full Code Here

    writer.writeExpression("codeExpression",
        barcode.getCodeExpression(), false);
    writer.writeExpression("applicationIdentifierExpression",
        barcode.getApplicationIdentifierExpression(), false);
   
    writer.closeElement();
  }

  protected void writeTable(TableComponent table, ComponentKey componentKey,
      final JRXmlWriter reportWriter) throws IOException
  {
View Full Code Here

          writeGroupCells(column.getGroupHeaders(), "groupHeader", reportWriter);
          writeGroupCells(column.getGroupFooters(), "groupFooter", reportWriter);
          writeTableCell(column.getColumnHeader(), "columnHeader", reportWriter);
          writeTableCell(column.getColumnFooter(), "columnFooter", reportWriter);
          writeTableCell(column.getDetailCell(), "detailCell", reportWriter);
          writer.closeElement();
        }
        catch (IOException e)
        {
          throw new JRRuntimeException(e);
        }
View Full Code Here

          for (BaseColumn column : columnGroup.getColumns())
          {
            column.visitColumn(this);
          }
         
          writer.closeElement();
        }
        catch (IOException e)
        {
          throw new JRRuntimeException(e);
        }
View Full Code Here

    for (BaseColumn column : table.getColumns())
    {
      column.visitColumn(columnWriter);
    }
   
    writer.closeElement();
  }
 
  protected void writeGroupCells(List<GroupCell> cells, String name,
      JRXmlWriter reportWriter) throws IOException
  {
View Full Code Here

      for (GroupCell groupCell : cells)
      {
        writer.startElement(name);
        writer.addAttribute("groupName", groupCell.getGroupName());
        writeTableCell(groupCell.getCell(), "cell", reportWriter);
        writer.closeElement();
      }
    }
  }
 
  protected void writeTableCell(Cell cell, String name,
View Full Code Here

      writer.addAttribute("rowSpan", cell.getRowSpan());
     
      reportWriter.writeBox(cell.getLineBox(), JRXmlWriter.JASPERREPORTS_NAMESPACE);
      reportWriter.writeChildElements(cell);
     
      writer.closeElement();//cell
    }
  }
 
  protected void addSpiderChartRules(Digester digester)
  {
View Full Code Here

    writeSpiderDataSet(dataset, writer, reportWriter, componentNamespace);
   
    SpiderPlot spiderPlot = (SpiderPlot)spiderChartComponent.getPlot();
    writeSpiderPlot(spiderPlot, chartSettings, writer, componentNamespace);
   
    writer.closeElement();//spiderChart
  }

  /**
   *
   */
 
View Full Code Here

    reportWriter.writeElementDataset(dataset);
   
    writer.writeExpression("keyExpression", dataset.getKeyExpression(), false);
    writer.writeExpression("valueExpression", dataset.getValueExpression(), false);
   
    writer.closeElement();//pieDataset
   
    writer.writeExpression("titleExpression", chart.getTitleExpression(), false);
   
    writer.closeElement();//pieChart
  }
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.