src/main/java/org/braisdom/excel/WorkbookTemplate.java
private void processRowElement(int rowIndex, Element rowElement, SheetWriter sheetWriter) {
        String style = rowElement.attributeValue(WorkbookAttribute.STYLE.getValue());
        String height = rowElement.attributeValue(WorkbookAttribute.HEIGHT.getValue());
        List<Element> cellElements = rowElement.elements(WorkbookElement.CELL.getValue());

        RowWriter rowWriter = sheetWriter.createRowWriter(rowIndex);

        if (style != null)
            rowWriter.setStyle(style);

        if (height != null)
            rowWriter.setHeight(Short.parseShort(height));

        for (int cellIndex = 0; cellIndex < cellElements.size(); cellIndex++) {
            Element cellElement = cellElements.get(cellIndex);
            processCellElement(rowIndex, style, cellIndex, cellElement, rowWriter);
        }
    }
/**
     * Generating the row of Excel and attaching the style of row.
     *
     * @param rowIndex    The real row index of Excel.
     * @param rowElement  The structured row element who has the definition of CSS and the attributes.
     * @param sheetWriter The sheet writer of Excel, it will be used for creating row writer.
     */
Generating the row of Excel and attaching the style of row.
@param rowIndex    The real row index of Excel.
@param rowElement  The structured row element who has the definition of CSS and the attributes.
@param sheetWriter The sheet writer of Excel, it will be used for creating row writer.
Generating the row of Excel and attaching the style of row . @param rowIndex The real row index of Excel . @param rowElement The structured row element who has the definition of CSS and the attributes . @param sheetWriter The sheet writer of Excel it will be used for creating row writer .
private void processRowElement(int rowIndex, Element rowElement, SheetWriter sheetWriter) {
        String style = rowElement.attributeValue(WorkbookAttribute.STYLE.getValue());
        String height = rowElement.attributeValue(WorkbookAttribute.HEIGHT.getValue());
        List<Element> cellElements = rowElement.elements(WorkbookElement.CELL.getValue());
        RowWriter rowWriter = sheetWriter.createRowWriter(rowIndex);
        if (style != null)
            rowWriter.setStyle(style);
        if (height != null)
            rowWriter.setHeight(Short.parseShort(height));
        for (int cellIndex = 0; cellIndex < cellElements.size(); cellIndex++) {
            Element cellElement = cellElements.get(cellIndex);
            processCellElement(rowIndex, style, cellIndex, cellElement, rowWriter);
        }
    }
private void processRowElement ( int rowIndex , Element rowElement , SheetWriter sheetWriter ) { String style = rowElement . attributeValue ( WorkbookAttribute . STYLE . getValue ( ) ) ; String height = rowElement . attributeValue ( WorkbookAttribute . HEIGHT . getValue ( ) ) ; List < Element > cellElements = rowElement . elements ( WorkbookElement . CELL . getValue ( ) ) ; RowWriter rowWriter = sheetWriter . createRowWriter ( rowIndex ) ; if ( style != null ) rowWriter . setStyle ( style ) ; if ( height != null ) rowWriter . setHeight ( Short . parseShort ( height ) ) ; for ( int cellIndex = 0 ; cellIndex < cellElements . size ( ) ; cellIndex ++ ) { Element cellElement = cellElements . get ( cellIndex ) ; processCellElement ( rowIndex , style , cellIndex , cellElement , rowWriter ) ; } }
Generating the row of Excel and attaching the style of row.
Generating the row of Excel and attaching the style of row .