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:
Yegor Kozlov 2009-11-21 15:49:16 +00:00
parent 0b9ab8930e
commit 52274f2a3f
3 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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.");