List of usage examples for org.apache.poi.xwpf.usermodel XWPFTable setRowBandSize
public void setRowBandSize(int size)
From source file:com.foc.vaadin.gui.mswordGenerator.FocMSWordLayout.java
License:Apache License
public void applyBorderAttribute(XWPFTable newTable) { String borderAtt = getXmlAttribute().getValue(FXML.ATT_BORDER); if (borderAtt != null && (borderAtt.toLowerCase().equals("true") || borderAtt.equals("1"))) { } else {/* w ww . j av a2 s . c o m*/ newTable.getCTTbl().getTblPr().unsetTblBorders(); newTable.setInsideHBorder(XWPFBorderType.NONE, 0, 0, null); newTable.setInsideVBorder(XWPFBorderType.NONE, 0, 0, null); newTable.setRowBandSize(200); } newTable.setCellMargins(0, 0, 0, 0); }
From source file:com.siemens.sw360.licenseinfo.outputGenerators.DocxUtils.java
License:Open Source License
private static void styleTable(XWPFTable table) { table.setRowBandSize(1); table.setWidth(1);//w ww. ja va 2 s.c o m table.setColBandSize(1); table.setCellMargins(1, 1, 100, 30); }