Bug 35498

Summary: Accessing and creating user-defined/named styles
Product: POI Reporter: Kristian Luck <kristian_luck>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.5-FINAL   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Kristian Luck 2005-06-24 15:53:52 UTC
There doesn't appear to be a mechanism to retrieve a named style from an
HSSFWorkbook, nor is there a way to create a named style for a worksheet.  I
expected that since such convenience methods were not available on the
HSSFWorksheet, I could find a getName() method on the HSSFCellStyle class. 
Unfortunately it wasn't there either.  Quickly searching through the 2.5.1 POI
codebase, it appears that although the StyleRecord records reference
ExtendedFormatRecord records, no effort is made to tie these together and
provide users a mechanism to access styles by name, much less create them [by name].
Comment 1 Avik Sengupta 2005-07-05 14:37:03 UTC
Wanna provide a patch :)
Comment 2 Yegor Kozlov 2011-06-24 10:01:23 UTC
User-defined cell styles are supported in POI-3.8-beta3

Yegor