public String getTblStyle(XWPFTable table) { return table.getStyleID(); }
@Override protected String[] getStyleID( XWPFTable table ) { return new String[] { table.getStyleID() }; }
@Override protected String[] getStyleID( XWPFTable table ) { return new String[] { table.getStyleID() }; }
public String getTblStyle(XWPFTable table){ return table.getStyleID(); }
public String getTblStyle(XWPFTable table) { return table.getStyleID(); }
@Override protected String[] getStyleID( XWPFTableRow row ) { return new String[] { row.getTable().getStyleID() }; }
@Override protected String[] getStyleID( XWPFTableRow row ) { return new String[] { row.getTable().getStyleID() }; }
@Override protected void startVisitTableRow( XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow ) throws Exception { // 1) create attributes // Create class attributes. XWPFTable table = row.getTable(); AttributesImpl attributes = createClassAttribute( table.getStyleID() ); // 2) create element if ( headerRow ) { startElement( TH_ELEMENT, attributes ); } else { startElement( TR_ELEMENT, attributes ); } }
@Override protected void startVisitTableRow( XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow ) throws Exception { // 1) create attributes // Create class attributes. XWPFTable table = row.getTable(); AttributesImpl attributes = createClassAttribute( table.getStyleID() ); // 2) create element if ( headerRow ) { startElement( TH_ELEMENT, attributes ); } else { startElement( TR_ELEMENT, attributes ); } }
@Override protected Object startVisitTable( XWPFTable table, float[] colWidths, Object tableContainer ) throws Exception { // 1) create attributes // 1.1) Create class attributes. AttributesImpl attributes = createClassAttribute( table.getStyleID() ); // 1.2) Create "style" attributes. CTTblPr tblPr = table.getCTTbl().getTblPr(); CSSStyle cssStyle = getStylesDocument().createCSSStyle( tblPr ); if(cssStyle != null) { cssStyle.addProperty(CSSStylePropertyConstants.BORDER_COLLAPSE, CSSStylePropertyConstants.BORDER_COLLAPSE_COLLAPSE); } attributes = createStyleAttribute( cssStyle, attributes ); // 2) create element startElement( TABLE_ELEMENT, attributes ); return null; }
@Override protected Object startVisitTable( XWPFTable table, float[] colWidths, Object tableContainer ) throws Exception { // 1) create attributes // 1.1) Create class attributes. AttributesImpl attributes = createClassAttribute( table.getStyleID() ); // 1.2) Create "style" attributes. CTTblPr tblPr = table.getCTTbl().getTblPr(); CSSStyle cssStyle = getStylesDocument().createCSSStyle( tblPr ); if(cssStyle != null) { cssStyle.addProperty(CSSStylePropertyConstants.BORDER_COLLAPSE, CSSStylePropertyConstants.BORDER_COLLAPSE_COLLAPSE); } attributes = createStyleAttribute( cssStyle, attributes ); // 2) create element startElement( TABLE_ELEMENT, attributes ); return null; }
String tableStyleID = table.getStyleID(); if ( StringUtils.isNotEmpty( tableStyleID ) )
String tableStyleID = table.getStyleID(); if ( StringUtils.isNotEmpty( tableStyleID ) )
AttributesImpl attributes = createClassAttribute( table.getStyleID() );
AttributesImpl attributes = createClassAttribute( table.getStyleID() );