You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Sander, Johannes" <Jo...@vector.com> on 2010/05/03 07:52:15 UTC

How can i get the outlinelevel of a HSSFRow?

Hello,

I'm trying to get the outlinelevel of an
'org.apache.poi.hssf.usermodel.HSSFRow' (poi-3.5-FINAL-20090928.jar).
The method 'getOutlineLevel' is protected. I have not found another
possibility to get the outline level. The reason is that I want to a
create a hierarchy of objects according
to the level of the rows in the excel sheet.

Thank you for your help.

Johannes

Re: How can i get the outlinelevel of a HSSFRow?

Posted by MSB <ma...@tiscali.co.uk>.
I do not know why the method's signature has been qualified with the
protected keyword and think that the best solution would be to download the
source for the project, modify that method in the HSSFRow class so that it
has public accessibility and then build your own 'version' of the api. This
page explains a lot; http://poi.apache.org/howtobuild.html

If this is a dangerous option, I hope that one of the developers will post a
message to the list.

Yours

Mark B


Sander, Johannes wrote:
> 
> Hello,
> 
> I'm trying to get the outlinelevel of an
> 'org.apache.poi.hssf.usermodel.HSSFRow' (poi-3.5-FINAL-20090928.jar).
> The method 'getOutlineLevel' is protected. I have not found another
> possibility to get the outline level. The reason is that I want to a
> create a hierarchy of objects according
> to the level of the rows in the excel sheet.
> 
> Thank you for your help.
> 
> Johannes
> 
> 

-- 
View this message in context: http://old.nabble.com/How-can-i-get-the-outlinelevel-of-a-HSSFRow--tp28431710p28436681.html
Sent from the POI - User mailing list archive at Nabble.com.


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