Package net.sf.jasperreports.engine.util

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


    XmlNamespace namespace = new XmlNamespace(
        ComponentsExtensionsRegistryFactory.NAMESPACE,
        componentKey.getNamespacePrefix(),
        ComponentsExtensionsRegistryFactory.XSD_LOCATION);
   
    writer.startElement("list", namespace);
    writer.addAttribute("printOrder", list.getPrintOrderValue());
    writer.addAttribute("ignoreWidth", list.getIgnoreWidth());
    reportWriter.writeDatasetRun(list.getDatasetRun());
   
    ListContents contents = list.getContents();
View Full Code Here


    writer.addAttribute("printOrder", list.getPrintOrderValue());
    writer.addAttribute("ignoreWidth", list.getIgnoreWidth());
    reportWriter.writeDatasetRun(list.getDatasetRun());
   
    ListContents contents = list.getContents();
    writer.startElement("listContents");
    writer.addAttribute("height", contents.getHeight());
    writer.addAttribute("width", contents.getWidth());
    reportWriter.writeChildElements(contents);
    writer.closeElement();
   
View Full Code Here

    XmlNamespace namespace = new XmlNamespace(
        ComponentsExtensionsRegistryFactory.NAMESPACE,
        componentKey.getNamespacePrefix(),
        ComponentsExtensionsRegistryFactory.XSD_LOCATION);
   
    writer.startElement("barbecue", namespace);
   
    writer.addAttribute("type", barcode.getType());
    writer.addAttribute("drawText", barcode.isDrawText());
    writer.addAttribute("checksumRequired", barcode.isChecksumRequired());
    writer.addAttribute("barWidth", barcode.getBarWidth());
View Full Code Here

    XmlNamespace namespace = new XmlNamespace(
        ComponentsExtensionsRegistryFactory.NAMESPACE,
        componentKey.getNamespacePrefix(),
        ComponentsExtensionsRegistryFactory.XSD_LOCATION);
   
    writer.startElement("table", namespace);
    reportWriter.writeDatasetRun(table.getDatasetRun());
   
    ColumnVisitor<Void> columnWriter = new ColumnVisitor<Void>()
    {
      public Void visitColumn(Column column)
View Full Code Here

    {
      public Void visitColumn(Column column)
      {
        try
        {
          writer.startElement("column");
          writer.addAttribute("width", column.getWidth());
          writer.writeExpression(JRXmlConstants.ELEMENT_printWhenExpression,
              JRXmlWriter.JASPERREPORTS_NAMESPACE,
              column.getPrintWhenExpression(), false);
          writeTableCell(column.getTableHeader(), "tableHeader", reportWriter);
View Full Code Here

      public Void visitColumnGroup(ColumnGroup columnGroup)
      {
        try
        {
          writer.startElement("columnGroup");
          writer.addAttribute("width", columnGroup.getWidth());
          writer.writeExpression(JRXmlConstants.ELEMENT_printWhenExpression,
              JRXmlWriter.JASPERREPORTS_NAMESPACE,
              columnGroup.getPrintWhenExpression(), false);
          writeTableCell(columnGroup.getTableHeader(), "tableHeader", reportWriter);
View Full Code Here

    if (cells != null)
    {
      JRXmlWriteHelper writer = reportWriter.getXmlWriteHelper();
      for (GroupCell groupCell : cells)
      {
        writer.startElement(name);
        writer.addAttribute("groupName", groupCell.getGroupName());
        writeTableCell(groupCell.getCell(), "cell", reportWriter);
        writer.closeElement();
      }
    }
View Full Code Here

      JRXmlWriter reportWriter) throws IOException
  {
    if (cell != null)
    {
      JRXmlWriteHelper writer = reportWriter.getXmlWriteHelper();
      writer.startElement(name);
      reportWriter.writeStyleReferenceAttr(cell);
      writer.addAttribute("height", cell.getHeight());
      writer.addAttribute("rowSpan", cell.getRowSpan());
     
      reportWriter.writeBox(cell.getLineBox(), JRXmlWriter.JASPERREPORTS_NAMESPACE);
View Full Code Here

      .getComponentsBundle(namespaceURI).getXmlParser().getPublicSchemaLocation();
    XmlNamespace componentNamespace = new XmlNamespace(namespaceURI, componentKey.getNamespacePrefix(),
        schemaLocation);

   
    writer.startElement(ELEMENT_spiderChart, componentNamespace);
   
    writer.addAttribute(JRXmlConstants.ATTRIBUTE_evaluationTime, spiderChartComponent.getEvaluationTime(), EvaluationTimeEnum.NOW);

    if (spiderChartComponent.getEvaluationTime() == EvaluationTimeEnum.GROUP)
    {
View Full Code Here

    String schemaLocation = ComponentsEnvironment
      .getComponentsBundle(namespaceURI).getXmlParser().getPublicSchemaLocation();
    XmlNamespace namespace = new XmlNamespace(namespaceURI, componentKey.getNamespacePrefix(),
        schemaLocation);
   
    writer.startElement("pieChart", namespace);
   
    writer.addAttribute("evaluationTime", chart.getEvaluationTime(), EvaluationTimeEnum.NOW);
    if (chart.getEvaluationTime() == EvaluationTimeEnum.GROUP)
    {
      writer.addEncodedAttribute("evaluationGroup", chart.getEvaluationGroup());
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.