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
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()Destroy / release this model object, for example all the dependency, parent linking.Get the style, if it doesn't has local style, it will possible look up it's parent's stylegetCellStyle(boolean local) Get the cell style locally or look up from the parentintgetIndex()intintReturns the column groupingsgetSheet()intgetWidth()booleanthe bestfit attributebooleanReturns true if it has "collapsed" attributebooleanbooleanisHidden()voidvoidsetBestFit(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) booleantoString()
-
Constructor Details
-
ColumnArrayImpl
-
-
Method Details
-
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
-
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:
-
getCellStyle
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
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() -
toString
-
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 -
getUpdates
-
resetUpdates
public void resetUpdates() -
shouldSkip
public boolean shouldSkip()
-