/** * Set row groupings (like groupRow) in a stream-friendly manner * * <p> * groupRows requires all rows in the group to be in the current window. * This is not always practical. Instead use setRowOutlineLevel to * explicitly set the group level. Level 1 is the top level group, * followed by 2, etc. It is up to the user to ensure that level 2 * groups are correctly nested under level 1, etc. * </p> * * @param rownum index of row to update (0-based) * @param level outline level (greater than 0) */ public void setRowOutlineLevel(int rownum, int level) { SXSSFRow row = _rows.get(rownum); row.setOutlineLevel(level); if(level > 0 && level > outlineLevelRow) { outlineLevelRow = level; setWorksheetOutlineLevelRow(); } }
row.setOutlineLevel(level);
/** * Set row groupings (like groupRow) in a stream-friendly manner * * <p> * groupRows requires all rows in the group to be in the current window. * This is not always practical. Instead use setRowOutlineLevel to * explicitly set the group level. Level 1 is the top level group, * followed by 2, etc. It is up to the user to ensure that level 2 * groups are correctly nested under level 1, etc. * </p> * * @param rownum index of row to update (0-based) * @param level outline level (greater than 0) */ public void setRowOutlineLevel(int rownum, int level) { SXSSFRow row = _rows.get(rownum); row.setOutlineLevel(level); if(level > 0 && level > outlineLevelRow) { outlineLevelRow = level; setWorksheetOutlineLevelRow(); } }