Examples of writeTag()


Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

          ReportConfigWriter.PAGE_TAG, attributes, XmlWriterSupport.CLOSE);
      xmlWriter.writeCloseTag();
    }
    else
    {
      xmlWriter.writeTag(ExtParserModule.NAMESPACE,
          ReportConfigWriter.PAGE_DEFINITION_TAG, XmlWriterSupport.OPEN);

      final int max = pageDefinition.getPageCount();
      for (int i = 0; i < max; i++)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

      for (int i = 0; i < max; i++)
      {
        final PageFormat fmt = pageDefinition.getPageFormat(i);

        final AttributeList attributes = buildPageFormatProperties(fmt);
        xmlWriter.writeTag(ExtParserModule.NAMESPACE, ReportConfigWriter.PAGE_TAG,
            attributes, XmlWriterSupport.CLOSE);
      }
      xmlWriter.writeCloseTag();
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

      writer.writeComment("Table Layout: ");
      writer.writeComment("Rows: " + sheetLayout.getRowCount());
      writer.writeComment("Columns: " + sheetLayout.getColumnCount());
      final int rows = sheetLayout.getRowCount();
      final int cols = sheetLayout.getColumnCount();
      writer.writeTag(null, "table", XmlWriter.OPEN);
      for (int row = 0; row < rows; row++)
      {
        writer.writeTag(null, "row", XmlWriter.OPEN);
        for (int col = 0; col < cols; col++)
        {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

      final int rows = sheetLayout.getRowCount();
      final int cols = sheetLayout.getColumnCount();
      writer.writeTag(null, "table", XmlWriter.OPEN);
      for (int row = 0; row < rows; row++)
      {
        writer.writeTag(null, "row", XmlWriter.OPEN);
        for (int col = 0; col < cols; col++)
        {
          final int sectionType = tableContentProducer.getSectionType(row, col);
          final CellBackground bg =
              cellBackgroundProducer.getBackgroundAt(logicalPage, sheetLayout, col, row, true, sectionType);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

          final int sectionType = tableContentProducer.getSectionType(row, col);
          final CellBackground bg =
              cellBackgroundProducer.getBackgroundAt(logicalPage, sheetLayout, col, row, true, sectionType);
          if (bg == null)
          {
            writer.writeTag(null, "empty-cell", XmlWriter.CLOSE);
            continue;
          }

          if (bg.isOrigin() == false)
          {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

          }

          if (bg.isOrigin() == false)
          {
            // A spanned cell ..
            writer.writeTag(null, "covered-cell", XmlWriter.CLOSE);
            continue;
          }

          final AttributeList attList = new AttributeList();
          final ReportAttributeMap attrs = bg.getAttributes();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

            attList.setAttribute(null, "border-bottom-right-x",
                String.valueOf(StrictGeomUtility.toExternalValue(bottomRight.getWidth())));
            attList.setAttribute(null, "border-bottom-right-y",
                String.valueOf(StrictGeomUtility.toExternalValue(bottomRight.getHeight())));
          }
          writer.writeTag(null, "cell", attList, XmlWriter.CLOSE);
        }
        writer.writeCloseTag();
      }
      writer.writeCloseTag();
      writer.flush();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

      final XmlWriter w = new XmlWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"), tags);
      w.writeXmlDeclaration("UTF-8");

      final AttributeList rootList = new AttributeList();
      rootList.addNamespaceDeclaration("", DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE);
      w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "drilldown-profiles", rootList, XmlWriter.OPEN);

      final Object[] objects = drillDownProfiles.toArray();
      for (int i = 0; i < objects.length; i++)
      {
        final DrillDownProfile object = (DrillDownProfile) objects[i];
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "expert", String.valueOf(object.isExpert()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "hidden", String.valueOf(object.isHidden()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "deprecated", String.valueOf(object.isDeprecated()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "preferred", String.valueOf(object.isPreferred()));

        w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "drilldown-profile", profileAttrs, XmlWriter.OPEN);

        final String[] attrNames = object.getAttributes();
        for (int j = 0; j < attrNames.length; j++)
        {
          final String attrName = attrNames[j];
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

        for (int j = 0; j < attrNames.length; j++)
        {
          final String attrName = attrNames[j];
          final String attrValue = object.getAttribute(attrName);

          w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "attribute", "name", attrName, XmlWriter.OPEN);
          w.writeTextNormalized(attrValue, false);
          w.writeCloseTag();
        }

        w.writeCloseTag();
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.