Package io.keikai.model
Interface SColumn
- All Superinterfaces:
CellStyleHolder
A column of a sheet. But you cannot get cells from it. You should get cell via
SSheet.getCell(int, int).- Since:
- 3.5.0
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()intReturns the column groupingsgetSheet()intgetWidth()booleanthe bestfit attributebooleanReturns true if it has "collapsed" attributebooleanbooleanisHidden()booleanisNull()voidsetBestFit(boolean bestFit) set the bestfit attributevoidsetCollapsed(boolean collapsed) Sets the "collapsed" attributevoidsetCustomWidth(boolean custom) voidsetHidden(boolean hidden) voidsetOutlineLevel(int outlineLevel) Set column groupings (like groupColumn) in a stream-friendly mannervoidsetWidth(int width) Methods inherited from interface io.keikai.model.CellStyleHolder
getCellStyle, getCellStyle, setCellStyle
-
Method Details
-
getIndex
int getIndex() -
getSheet
SSheet getSheet() -
isNull
boolean isNull()- Returns:
- TRUE if this is a blank column whose cells has no data, otherwise returns FALSE.
-
getWidth
int getWidth() -
isHidden
boolean isHidden() -
isCustomWidth
boolean isCustomWidth() -
setWidth
void setWidth(int width) -
setHidden
void setHidden(boolean hidden) -
setCustomWidth
void setCustomWidth(boolean custom) -
isBestFit
boolean isBestFit()the bestfit attribute- Returns:
- is bestfit or not
- Since:
- 5.11.0
-
setBestFit
void setBestFit(boolean bestFit) set the bestfit attribute- Since:
- 5.11.0
-
setOutlineLevel
void setOutlineLevel(int outlineLevel) Set column groupings (like groupColumn) in a stream-friendly mannergroupColumns requires all rows in the group to be in the current window. This is not always practical. Instead use setOutlineLevel to explicitly set the group level. Level 1 is the top level group, followed by 2, etc. It is up to the user to ensure that level 2 groups are correctly nested under level 1, etc.
Note: The maximum outlines are up to eight levels.
- Parameters:
outlineLevel- outline level (greater than 0)- Since:
- 6.0.0
-
getOutlineLevel
int getOutlineLevel()Returns the column groupings- Since:
- 6.0.0
-
isCollapsed
boolean isCollapsed()Returns true if it has "collapsed" attribute- Since:
- 6.0.0
-
setCollapsed
void setCollapsed(boolean collapsed) Sets the "collapsed" attribute- Since:
- 6.0.0
-