Examples of TableRenderBox


Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.TableRenderBox

      print(b.toString());
    }

    if (box instanceof TableRenderBox)
    {
      final TableRenderBox pageBox = (TableRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Layout: ");
      Object styleProperty = pageBox.getStyleSheet().getStyleProperty(BandStyleKeys.TABLE_LAYOUT);
      if (TableLayout.auto.equals(styleProperty))
      {
        b.append(TableLayout.auto);
      }
      else
      {
        b.append(TableLayout.fixed);
      }
      print(b.toString());
    }

    if (box instanceof TableSectionRenderBox)
    {
      final TableSectionRenderBox pageBox = (TableSectionRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Role: ");
      b.append(pageBox.getDisplayRole());
      print(b.toString());
    }

    if (box instanceof TableRowRenderBox)
    {
      final TableRowRenderBox pageBox = (TableRowRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Row: ");
      b.append(pageBox.getRowIndex());
      print(b.toString());
    }

    if (box instanceof TableCellRenderBox)
    {
      final TableCellRenderBox pageBox = (TableCellRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Column-Index=");
      b.append(pageBox.getColumnIndex());
      b.append(", ColSpan=");
      b.append(pageBox.getColSpan());
      b.append(", RowSpan=");
      b.append(pageBox.getRowSpan());
      print(b.toString());
    }

    if (box instanceof BreakMarkerRenderBox)
    {
      final BreakMarkerRenderBox pageBox = (BreakMarkerRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- InstanceID=");
      b.append(pageBox.getInstanceId());
      b.append(", validity-range=");
      b.append(pageBox.getValidityRange());
      print(b.toString());
    }


    if (box.isOpen())
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.