@Override public void endTable() throws CreateTableException { if (elementColumn > 0) { incCurrentRow(LOGIC_ELEMENT_HEIGHT); } super.endTable(); }
@Override public void endTable() throws CreateTableException { if (elementColumn > 0) { incCurrentRow(LOGIC_ELEMENT_HEIGHT); } super.endTable(); }
/** * @param table Table to move * @return Region in the sheet, where table has been moved */ public synchronized IGridRegion moveTable(IGridTable table) throws TableServiceException { IGridRegion newRegion; try { TableBuilder tableBuilder = new TableBuilder((XlsSheetGridModel) table.getGrid(), metaInfoWriter); tableBuilder.beginTable(table.getWidth(), table.getHeight()); newRegion = tableBuilder.getTableRegion(); tableBuilder.writeGridTable(table); tableBuilder.endTable(); } catch (Exception e) { throw new TableServiceException("Could not move the table", e); } removeTable(table); return newRegion; }
public synchronized void moveTableTo(IGridTable table, IGridRegion destRegion) throws TableServiceException { if (Tool.height(destRegion) != table.getHeight() || Tool.width(destRegion) != table.getWidth()) { throw new TableServiceException("Bad destination region size."); } try { TableBuilder tableBuilder = new TableBuilder((XlsSheetGridModel) table.getGrid(), metaInfoWriter); tableBuilder.beginTable(destRegion); tableBuilder.writeGridTable(table); tableBuilder.endTable(); } catch (Exception e) { throw new TableServiceException("Could not move the table", e); } removeTable(table); } }
builder.endTable();