poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48344] setRowStyle() method of HSSFRow is not working
Date Mon, 10 Oct 2011 20:48:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48344

--- Comment #14 from Denis Kurochkin <d.k.brazz@gmail.com> 2011-10-10 20:48:18 UTC ---
(In reply to comment #12)
> (In reply to comment #9)
> > In reopened file:
> > sheet.getRow(2).getRowStyle(); // returns style which defined previosly by
> > setRowStyle().
> > style = sheet.getRow(2).getCell(0).getCellStyle(); // returns default workbook
> > style
> 
> If you set a style on a row in Excel, what gets written for the cell styles for
> cells with the default style? Does excel go through and change all the cells in
> the row, or does it just inherit?

If I set a style on a row Excel sets same style for each cell in this row.
Iterate over all cells in a row shows that cells with default style have style
equivalent to style of row:
rowstyle.getIndex()==stylecell.getIndex() -> true
rowstyle.equals(cellstyle) -> true
rowstyle.hashCode()==cellstyle.hashCode -> true

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message