Browse Source

[github-319] fix javadoc on setColumnHidden. Thanks to CodeMonkeyLab. This closes #319

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899580 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_3
PJ Fanning 2 years ago
parent
commit
0b863c29a1

+ 2
- 2
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java View File

@@ -199,10 +199,10 @@ public class SXSSFSheet implements Sheet, OoxmlSheetExtensions {
}

/**
* Get the visibility state for a given column
* Set the visibility state for a given column
*
* @param columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column
* @param hidden - the visibility state of the column
*/
@Override
public void setColumnHidden(int columnIndex, boolean hidden) {

+ 2
- 2
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java View File

@@ -2455,10 +2455,10 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetEx
}

/**
* Get the visibility state for a given column.
* Set the visibility state for a given column.
*
* @param columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column
* @param hidden - the visibility state of the column
*/
@Override
public void setColumnHidden(int columnIndex, boolean hidden) {

+ 2
- 1
poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java View File

@@ -1066,13 +1066,14 @@ public final class InternalSheet {
}

/**
* Get the hidden property for a given column.
* Set the hidden property for a given column.
* @param column - the column number
* @param hidden - whether the column is hidden or not
*/
public void setColumnHidden(int column, boolean hidden) {
setColumn( column, null, null, null, hidden, null);
}

public void setDefaultColumnStyle(int column, int styleIndex) {
setColumn(column, (short) styleIndex, null, null, null, null);
}

+ 2
- 2
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java View File

@@ -476,10 +476,10 @@ public final class HSSFSheet implements Sheet {
}

/**
* Get the visibility state for a given column.
* Set the visibility state for a given column.
*
* @param columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column
* @param hidden - the visibility state of the column
*/
@Override
public void setColumnHidden(int columnIndex, boolean hidden) {

+ 1
- 1
poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java View File

@@ -118,7 +118,7 @@ public interface Sheet extends Iterable<Row> {
int getLastRowNum();

/**
* Get the visibility state for a given column
* Set the visibility state for a given column
*
* @param columnIndex - the column to get (0-based)
* @param hidden - the visibility state of the column

Loading…
Cancel
Save