PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-09-06 04:08:30 +00:00
parent 32543e4e8c
commit 53d4819628
3 changed files with 11 additions and 3 deletions

View File

@ -1832,6 +1832,14 @@ public class Workbook {
return -1; return -1;
} }
/**
* Returns the list of FormatRecords in the workbook.
* @return ArrayList of FormatRecords in the notebook
*/
public ArrayList getFormats() {
return formats;
}
/** /**
* Creates a FormatRecord, inserts it, and returns the index code. * Creates a FormatRecord, inserts it, and returns the index code.
* @param format the format string * @param format the format string

View File

@ -286,7 +286,7 @@ public class HSSFCellStyle
} }
/** /**
* set the data format (only builtin formats are supported) * set the data format (must be a valid format)
* @see org.apache.poi.hssf.usermodel.HSSFDataFormat * @see org.apache.poi.hssf.usermodel.HSSFDataFormat
*/ */
@ -296,7 +296,7 @@ public class HSSFCellStyle
} }
/** /**
* get the index of the built in format * get the index of the format
* @see org.apache.poi.hssf.usermodel.HSSFDataFormat * @see org.apache.poi.hssf.usermodel.HSSFDataFormat
*/ */

View File

@ -276,7 +276,7 @@ public class HSSFDataFormat
if (movedBuiltins) if (movedBuiltins)
return ( String ) formats.get(index); return ( String ) formats.get(index);
else else
return (String) (builtinFormats.get(index) != null ? builtinFormats.get(index) : formats.get(index)); return (String) (builtinFormats.size() > index && builtinFormats.get(index) != null ? builtinFormats.get(index) : formats.get(index));
} }
/** /**