Package io.keikai.model
Interface SColumn
-
- All Superinterfaces:
CellStyleHolder
public interface SColumn extends CellStyleHolder
A column of a sheet. But you cannot get cells from it. You should get cell viaSSheet.getCell(int, int)
.- Since:
- 3.5.0
- Author:
- dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIndex()
int
getOutlineLevel()
Returns the column groupingsSSheet
getSheet()
int
getWidth()
boolean
isBestFit()
the bestfit attributeboolean
isCollapsed()
Returns true if it has "collapsed" attributeboolean
isCustomWidth()
boolean
isHidden()
boolean
isNull()
void
setBestFit(boolean bestFit)
set the bestfit attributevoid
setCollapsed(boolean collapsed)
Sets the "collapsed" attributevoid
setCustomWidth(boolean custom)
void
setHidden(boolean hidden)
void
setOutlineLevel(int outlineLevel)
Set column groupings (like groupColumn) in a stream-friendly mannervoid
setWidth(int width)
-
Methods inherited from interface io.keikai.model.CellStyleHolder
getCellStyle, getCellStyle, setCellStyle
-
-
-
-
Method Detail
-
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
-
-