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 voidcheckOrphan()voiddestroy()Destroy / release this model object, for example all the dependency, parent linking.SCellStylegetCellStyle()Get the style, if it doesn't has local style, it will possible look up it's parent's styleSCellStylegetCellStyle(boolean local)Get the cell style locally or look up from the parentintgetIndex()intgetLastIndex()intgetOutlineLevel()Returns the column groupingsSSheetgetSheet()Map<String,Object>getUpdates()intgetWidth()booleanisBestFit()the bestfit attributebooleanisCollapsed()Returns true if it has "collapsed" attributebooleanisCustomWidth()booleanisHidden()voidresetUpdates()voidsetBestFit(boolean bestFit)set the bestfit attributevoidsetCellStyle(SCellStyle cellStyle)Set the local stylevoidsetCollapsed(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)booleanshouldSkip()StringtoString()
-
-
-
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:LinkedModelObjectDestroy / 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:CellStyleHolderGet 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:CellStyleHolderGet 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:CellStyleHolderSet 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:SColumnArraythe bestfit attribute- Returns:
- is bestfit or not
-
setBestFit
public void setBestFit(boolean bestFit)
Description copied from interface:SColumnArrayset the bestfit attribute
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)
Description copied from interface:SColumnArraySet 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:SColumnArrayReturns the column groupings
-
isCollapsed
public boolean isCollapsed()
Description copied from interface:SColumnArrayReturns true if it has "collapsed" attribute
-
setCollapsed
public void setCollapsed(boolean collapsed)
Description copied from interface:SColumnArraySets the "collapsed" attribute
-
resetUpdates
public void resetUpdates()
-
shouldSkip
public boolean shouldSkip()
-
-