mirror of https://github.com/apache/poi.git
fixed javadoc for HSSFSheet.setColumnWidth and XSSFSheet setColumnWidth
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@882931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
437182aa72
commit
1490ef1c8a
|
@ -34,6 +34,7 @@
|
|||
|
||||
<changes>
|
||||
<release version="3.6-beta1" date="2009-??-??">
|
||||
<action dev="POI-DEVELOPERS" type="fix">48229 - fixed javadoc for HSSFSheet.setColumnWidth and XSSFSheet setColumnWidth </action>
|
||||
<action dev="POI-DEVELOPERS" type="fix">47757 - fixed XLSX2CSV to avoid exception when processing cells with multiple "t" elements</action>
|
||||
<action dev="POI-DEVELOPERS" type="add">48195 - short-circuit evaluation of IF() and CHOOSE()</action>
|
||||
<action dev="POI-DEVELOPERS" type="add">48161 - support for text extraction from PPT master slides</action>
|
||||
|
|
|
@ -431,7 +431,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
|
|||
*
|
||||
* @param columnIndex - the column to set (0-based)
|
||||
* @param width - the width in units of 1/256th of a character width
|
||||
* @throws IllegalArgumentException if width > 65536 (the maximum column width in Excel)
|
||||
* @throws IllegalArgumentException if width > 65280 (the maximum column width in Excel)
|
||||
*/
|
||||
public void setColumnWidth(int columnIndex, int width) {
|
||||
_sheet.setColumnWidth(columnIndex, width);
|
||||
|
|
|
@ -1671,7 +1671,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
|
|||
*
|
||||
* @param columnIndex - the column to set (0-based)
|
||||
* @param width - the width in units of 1/256th of a character width
|
||||
* @throws IllegalArgumentException if width > 65536 (the maximum column width in Excel)
|
||||
* @throws IllegalArgumentException if width > 65280 (the maximum column width in Excel)
|
||||
*/
|
||||
public void setColumnWidth(int columnIndex, int width) {
|
||||
if(width > 255*256) throw new IllegalArgumentException("The maximum column width for an individual cell is 255 characters.");
|
||||
|
|
Loading…
Reference in New Issue