コード例 #1
0
  protected void finishTableColumnGroupBox(final TableColumnGroupNode box) {
    if (currentTable == null) {
      return;
    }

    if (currentTable.table.isPredefinedColumnsValidated()) {
      return;
    }

    while (currentColumnGroup.getColumnCount() < box.getColSpan()) {
      currentColumnGroup.addColumn(
          new TableColumn(currentColumnGroup.getBorder(), RenderLength.AUTO, false));
    }

    currentTable.columnModel.addColumnGroup(currentColumnGroup);
    currentColumnGroup = null;
  }
コード例 #2
0
  protected void processTableColumn(final TableColumnNode node) {
    if (currentTable == null) {
      return;
    }

    if (currentTable.table.isPredefinedColumnsValidated()) {
      return;
    }

    final Border border = node.getBoxDefinition().getBorder();
    final RenderLength length = node.getBoxDefinition().getMinimumWidth();

    if (currentColumnGroup != null) {
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
    } else {
      final TableColumnGroup currentColumnGroup =
          new TableColumnGroup(BoxDefinition.EMPTY.getBorder());
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
      currentTable.columnModel.addColumnGroup(currentColumnGroup);
    }
  }
コード例 #3
0
  protected boolean startTableColumnGroupBox(final TableColumnGroupNode box) {
    if (currentTable == null) {
      return false;
    }

    if (currentTable.table.isPredefinedColumnsValidated()) {
      return false;
    }

    currentColumnGroup = new TableColumnGroup(box.getBoxDefinition().getBorder());
    currentColumnGroup.setColSpan(box.getColSpan());
    return true;
  }