mirror of https://github.com/apache/poi.git
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:
parent
97693b3845
commit
07772a2b16
|
@ -1832,6 +1832,14 @@ public class Workbook {
|
|||
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.
|
||||
* @param format the format string
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@ public class HSSFDataFormat
|
|||
if (movedBuiltins)
|
||||
return ( String ) formats.get(index);
|
||||
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue