Package org.jfree.report.modules.misc.autotable

Examples of org.jfree.report.modules.misc.autotable.AutoTableElement


  private ArrayList footerSections;
  private ArrayList contentSections;

  public AutoTableElementReadHandler()
  {
    autoTableElement = new AutoTableElement();
    headerSections = new ArrayList();
    contentSections = new ArrayList();
    footerSections = new ArrayList();
  }
View Full Code Here


  private LayoutController processData(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    // the auto-table is responsible for the iteration over the table.
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getContentCount() == 0)
    {
      throw new ReportProcessingException
          ("An Auto-Table must have at least one defined column.");
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getContentCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getContentCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
View Full Code Here

  }

  private LayoutController processFooter(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getFooterCount() == 0)
    {
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      derived.currentColumn = 0;
      derived.processingState = -1;
      derived.setProcessingState(ElementLayoutController.FINISHING);
      return derived;
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "footer-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getFooterCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getFooterCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "footer-row");
View Full Code Here

  }

  private LayoutController processHeader(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getHeaderCount() == 0)
    {
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      derived.currentColumn = 0;
      derived.processingState = AutoTableLayoutController.HANDLING_DATA;
      return derived;
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "header-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getHeaderCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getHeaderCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "header-row");
View Full Code Here

  private LayoutController processData(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    // the auto-table is responsible for the iteration over the table.
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getContentCount() == 0)
    {
      throw new ReportProcessingException
          ("An Auto-Table must have at least one defined column.");
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getContentCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getContentCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
View Full Code Here

  }

  private LayoutController processFooter(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getFooterCount() == 0)
    {
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      derived.currentColumn = 0;
      derived.processingState = -1;
      derived.setProcessingState(ElementLayoutController.FINISHING);
      return derived;
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "footer-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getFooterCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getFooterCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "footer-row");
View Full Code Here

  }

  private LayoutController processHeader(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getHeaderCount() == 0)
    {
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      derived.currentColumn = 0;
      derived.processingState = AutoTableLayoutController.HANDLING_DATA;
      return derived;
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "header-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getHeaderCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getHeaderCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "header-row");
View Full Code Here

  private ArrayList footerSections;
  private ArrayList contentSections;

  public AutoTableElementReadHandler()
  {
    autoTableElement = new AutoTableElement();
    headerSections = new ArrayList();
    contentSections = new ArrayList();
    footerSections = new ArrayList();
  }
View Full Code Here

  private ArrayList footerSections;
  private ArrayList contentSections;

  public AutoTableElementReadHandler()
  {
    autoTableElement = new AutoTableElement();
    headerSections = new ArrayList();
    contentSections = new ArrayList();
    footerSections = new ArrayList();
  }
View Full Code Here

  private LayoutController processData(final ReportTarget target)
      throws ReportProcessingException, DataSourceException, ReportDataFactoryException
  {
    // the auto-table is responsible for the iteration over the table.
    final AutoTableElement node = (AutoTableElement) getElement();
    if (node.getContentCount() == 0)
    {
      throw new ReportProcessingException
          ("An Auto-Table must have at least one defined column.");
    }

    if (currentColumn == 0)
    {
      // Start a new table-header section ..
      final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
          (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
      target.startElement(elementMap);
    }

    if (currentColumn < columnCount)
    {
      // now delegate the processing to the section handler for the header ..
      final FlowController flowController = getFlowController();
      final ReportContext reportContext = flowController.getReportContext();
      final LayoutControllerFactory layoutControllerFactory =
          reportContext.getLayoutControllerFactory();

      final int idx = currentColumn % node.getContentCount();
      final AutoTableLayoutController derived = (AutoTableLayoutController) clone();
      return layoutControllerFactory.create
          (flowController, node.getContentCell(idx), derived);
    }

    // close the table-header section ..
    final AttributeMap elementMap = LayoutControllerUtil.createEmptyMap
        (AutoTableModule.AUTOTABLE_NAMESPACE, "data-row");
View Full Code Here

TOP

Related Classes of org.jfree.report.modules.misc.autotable.AutoTableElement

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.