Package io.keikai.model.impl
Class ColumnArrayImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractColumnArrayAdv
-
- io.keikai.model.impl.ColumnArrayImpl
-
- All Implemented Interfaces:
CellStyleHolder
,LinkedModelObject
,SColumnArray
,Serializable
public class ColumnArrayImpl extends AbstractColumnArrayAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ColumnArrayImpl(AbstractSheetAdv sheet, int index, int lastIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOrphan()
void
destroy()
Destroy / release this model object, for example all the dependency, parent linking.SCellStyle
getCellStyle()
Get the style, if it doesn't has local style, it will possible look up it's parent's styleSCellStyle
getCellStyle(boolean local)
Get the cell style locally or look up from the parentint
getIndex()
int
getLastIndex()
int
getOutlineLevel()
Returns the column groupingsSSheet
getSheet()
Map<String,Object>
getUpdates()
int
getWidth()
boolean
isBestFit()
the bestfit attributeboolean
isCollapsed()
Returns true if it has "collapsed" attributeboolean
isCustomWidth()
boolean
isHidden()
void
resetUpdates()
void
setBestFit(boolean bestFit)
set the bestfit attributevoid
setCellStyle(SCellStyle cellStyle)
Set the local stylevoid
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)
boolean
shouldSkip()
String
toString()
-
-
-
Constructor Detail
-
ColumnArrayImpl
public ColumnArrayImpl(AbstractSheetAdv sheet, int index, int lastIndex)
-
-
Method Detail
-
getIndex
public int getIndex()
-
checkOrphan
public void checkOrphan()
-
destroy
public void destroy()
Description copied from interface:LinkedModelObject
Destroy / release this model object, for example all the dependency, parent linking. this method has to be called before remove this linking from parent object
-
getSheet
public SSheet getSheet()
-
getCellStyle
public SCellStyle getCellStyle()
Description copied from interface:CellStyleHolder
Get the style, if it doesn't has local style, it will possible look up it's parent's style- See Also:
CellStyleHolder.getCellStyle(boolean)
-
getCellStyle
public SCellStyle getCellStyle(boolean local)
Description copied from interface:CellStyleHolder
Get the cell style locally or look up from the parent- Parameters:
local
- true to get the local style only
-
setCellStyle
public void setCellStyle(SCellStyle cellStyle)
Description copied from interface:CellStyleHolder
Set the local style- Parameters:
cellStyle
- the style to set, null to clean local style
-
getWidth
public int getWidth()
-
isHidden
public boolean isHidden()
-
setWidth
public void setWidth(int width)
-
setHidden
public void setHidden(boolean hidden)
-
getLastIndex
public int getLastIndex()
-
isCustomWidth
public boolean isCustomWidth()
-
setCustomWidth
public void setCustomWidth(boolean custom)
-
isBestFit
public boolean isBestFit()
Description copied from interface:SColumnArray
the bestfit attribute- Returns:
- is bestfit or not
-
setBestFit
public void setBestFit(boolean bestFit)
Description copied from interface:SColumnArray
set the bestfit attribute
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)
Description copied from interface:SColumnArray
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)
-
getOutlineLevel
public int getOutlineLevel()
Description copied from interface:SColumnArray
Returns the column groupings
-
isCollapsed
public boolean isCollapsed()
Description copied from interface:SColumnArray
Returns true if it has "collapsed" attribute
-
setCollapsed
public void setCollapsed(boolean collapsed)
Description copied from interface:SColumnArray
Sets the "collapsed" attribute
-
resetUpdates
public void resetUpdates()
-
shouldSkip
public boolean shouldSkip()
-
-