[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
This commit is contained in:
PJ Fanning 2022-04-05 10:43:54 +00:00
parent 0ee8c135c4
commit 0b863c29a1
5 changed files with 9 additions and 8 deletions

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 columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column * @param hidden - the visibility state of the column
*/ */
@Override @Override
public void setColumnHidden(int columnIndex, boolean hidden) { public void setColumnHidden(int columnIndex, boolean hidden) {

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 columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column * @param hidden - the visibility state of the column
*/ */
@Override @Override
public void setColumnHidden(int columnIndex, boolean hidden) { public void setColumnHidden(int columnIndex, boolean hidden) {

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 column - the column number
* @param hidden - whether the column is hidden or not * @param hidden - whether the column is hidden or not
*/ */
public void setColumnHidden(int column, boolean hidden) { public void setColumnHidden(int column, boolean hidden) {
setColumn( column, null, null, null, hidden, null); setColumn( column, null, null, null, hidden, null);
} }
public void setDefaultColumnStyle(int column, int styleIndex) { public void setDefaultColumnStyle(int column, int styleIndex) {
setColumn(column, (short) styleIndex, null, null, null, null); setColumn(column, (short) styleIndex, null, null, null, null);
} }

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 columnIndex - the column to get (0-based)
* @param hidden - the visiblity state of the column * @param hidden - the visibility state of the column
*/ */
@Override @Override
public void setColumnHidden(int columnIndex, boolean hidden) { public void setColumnHidden(int columnIndex, boolean hidden) {

View File

@ -118,7 +118,7 @@ public interface Sheet extends Iterable<Row> {
int getLastRowNum(); 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 columnIndex - the column to get (0-based)
* @param hidden - the visibility state of the column * @param hidden - the visibility state of the column