public void setName(String name) { styleInfo.setName(name); style = stylesTable.getTableStyle(name); }
public void setShowColumnStripes(boolean show) { this.columnStripes = show; styleInfo.setShowColumnStripes(show); }
public void setShowRowStripes(boolean show) { this.rowStripes = show; styleInfo.setShowRowStripes(show); }
/** * @param stylesTable * @param tableStyleInfo */ public XSSFTableStyleInfo(StylesTable stylesTable, CTTableStyleInfo tableStyleInfo) { this.columnStripes = tableStyleInfo.getShowColumnStripes(); this.rowStripes = tableStyleInfo.getShowRowStripes(); this.firstColumn = tableStyleInfo.getShowFirstColumn(); this.lastColumn = tableStyleInfo.getShowLastColumn(); this.style = stylesTable.getTableStyle(tableStyleInfo.getName()); this.stylesTable = stylesTable; this.styleInfo = tableStyleInfo; }
table_style.setName("TableStyleMedium9"); table_style.setShowColumnStripes(false); //showColumnStripes=0 table_style.setShowRowStripes(true); //showRowStripes=1
/** * Changes the name of the Table * @param newStyleName The name of the style. * @since 3.17 beta 1 */ public void setStyleName(String newStyleName) { if (newStyleName == null) { if (ctTable.isSetTableStyleInfo()) { ctTable.getTableStyleInfo().unsetName(); } styleName = null; return; } if (! ctTable.isSetTableStyleInfo()) { ctTable.addNewTableStyleInfo(); } ctTable.getTableStyleInfo().setName(newStyleName); styleName = newStyleName; }
/** * @return the table style name, if set * @since 3.17 beta 1 */ public String getStyleName() { if (styleName == null && ctTable.isSetTableStyleInfo()) { setStyleName(ctTable.getTableStyleInfo().getName()); } return styleName; }
public void setFirstColumn(boolean showFirstColumn) { this.firstColumn = showFirstColumn; styleInfo.setShowFirstColumn(showFirstColumn); }
public void setLastColumn(boolean showLastColumn) { this.lastColumn = showLastColumn; styleInfo.setShowLastColumn(showLastColumn); }
style.setName("TableStyleLight1"); style.setShowColumnStripes(false); style.setShowRowStripes(true);
/** * @param stylesTable * @param tableStyleInfo */ public XSSFTableStyleInfo(StylesTable stylesTable, CTTableStyleInfo tableStyleInfo) { this.columnStripes = tableStyleInfo.getShowColumnStripes(); this.rowStripes = tableStyleInfo.getShowRowStripes(); this.firstColumn = tableStyleInfo.getShowFirstColumn(); this.lastColumn = tableStyleInfo.getShowLastColumn(); this.style = stylesTable.getTableStyle(tableStyleInfo.getName()); this.stylesTable = stylesTable; this.styleInfo = tableStyleInfo; }
/** * Changes the name of the Table * @param newStyleName The name of the style. * @since 3.17 beta 1 */ public void setStyleName(String newStyleName) { if (newStyleName == null) { if (ctTable.isSetTableStyleInfo()) { ctTable.getTableStyleInfo().unsetName(); } styleName = null; return; } if (! ctTable.isSetTableStyleInfo()) { ctTable.addNewTableStyleInfo(); } ctTable.getTableStyleInfo().setName(newStyleName); styleName = newStyleName; }
/** * @return the table style name, if set * @since 3.17 beta 1 */ public String getStyleName() { if (styleName == null && ctTable.isSetTableStyleInfo()) { setStyleName(ctTable.getTableStyleInfo().getName()); } return styleName; }
public void setFirstColumn(boolean showFirstColumn) { this.firstColumn = showFirstColumn; styleInfo.setShowFirstColumn(showFirstColumn); }
public void setLastColumn(boolean showLastColumn) { this.lastColumn = showLastColumn; styleInfo.setShowLastColumn(showLastColumn); }
public void setName(String name) { styleInfo.setName(name); style = stylesTable.getTableStyle(name); }
public void setShowColumnStripes(boolean show) { this.columnStripes = show; styleInfo.setShowColumnStripes(show); }
public void setShowRowStripes(boolean show) { this.rowStripes = show; styleInfo.setShowRowStripes(show); }
table.getCTTable().getTableStyleInfo().setName("TableStyleMedium2");
@Override public void process(XLXContext context) throws Exception { String style = context.getReportContext().getTableStyleName(); if(style != null){ table.getCTTable().getTableStyleInfo().setName(style); } for(CTTableColumn c : table.getCTTable().getTableColumns().getTableColumnArray()){ Object name = CellExpressionParser.parseExpression(c.getName()).evaluate(context); if(name != null){ c.setName(name.toString()); } } if(header != null){ context.setTableStartHeader(); header.process(context); context.endTableHeader(); generateXMLMap(context); } String tableStartRef = startTable(context); long row = context.getCurrentRow(); forEach.process(context); if(row == context.getCurrentRow()){ context.nextRow();//insert empty row } if(totals != null){ totals.process(context); } processTable(context, tableStartRef); }