Package io.keikai.model.impl
Class RowImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractRowAdv
-
- io.keikai.model.impl.RowImpl
-
- All Implemented Interfaces:
CellStyleHolder,LinkedModelObject,SRow,Serializable
public class RowImpl extends AbstractRowAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RowImpl(AbstractSheetAdv sheet, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOrphan()voidclearCell(int start, int end)voiddeleteCell(int cellIdx, int size)voiddestroy()Destroy / release this model object, for example all the dependency, parent linking.SCellgetCell(int cellIdx)AbstractCellAdvgetCell(int columnIdx, boolean proxy)Iterator<SCell>getCellIterator()Iterator<SCell>getCellIterator(boolean reverse)Iterator<SCell>getCellIterator(boolean reverse, int start, int end)Iterator<SCell>getCellIterator(int start, int end)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 parentintgetEndCellIndex()intgetHeight()IntegergetHeightDirectly()Get height directly.intgetIndex()intgetOutlineLevel()Returns the row groupingsSSheetgetSheet()intgetStartCellIndex()Map<String,Object>getUpdates()voidinsertCell(int cellIdx, int size)booleanisCollapsed()Returns true if it has "collapsed" attributebooleanisCustomHeight()booleanisHidden()booleanisNull()voidresetUpdates()voidsetCellStyle(SCellStyle cellStyle)Set the local stylevoidsetCollapsed(boolean collapsed)Sets the "collapsed" attributevoidsetCustomHeight(boolean custom)voidsetHeight(int height)voidsetHidden(boolean hidden)voidsetOutlineLevel(int outlineLevel)Set row groupings (like groupRow) in a stream-friendly mannerStringtoString()
-
-
-
Constructor Detail
-
RowImpl
public RowImpl(AbstractSheetAdv sheet, int index)
-
-
Method Detail
-
getSheet
public SSheet getSheet()
-
getIndex
public int getIndex()
- Returns:
- 0-based row index
-
isNull
public boolean isNull()
-
getCell
public AbstractCellAdv getCell(int columnIdx, boolean proxy)
- Specified by:
getCellin classAbstractRowAdv
-
getStartCellIndex
public int getStartCellIndex()
-
getEndCellIndex
public int getEndCellIndex()
-
clearCell
public void clearCell(int start, int end)
-
insertCell
public void insertCell(int cellIdx, int size)
-
deleteCell
public void deleteCell(int cellIdx, int size)
-
getCell
public SCell getCell(int cellIdx)
- Specified by:
getCellin classAbstractRowAdv
-
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
-
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
-
getHeight
public int getHeight()
- Returns:
- height in pixels
-
isHidden
public boolean isHidden()
-
setHeight
public void setHeight(int height)
-
setHidden
public void setHidden(boolean hidden)
-
isCustomHeight
public boolean isCustomHeight()
-
setCustomHeight
public void setCustomHeight(boolean custom)
- Parameters:
custom- TRUE, if the height is set by users and is not calculated by system automatically
-
resetUpdates
public void resetUpdates()
-
getCellIterator
public Iterator<SCell> getCellIterator(boolean reverse, int start, int end)
- Specified by:
getCellIteratorin classAbstractRowAdv
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)
Description copied from interface:SRowSet row groupings (like groupRow) in a stream-friendly mannergroupRows 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:SRowReturns the row groupings
-
isCollapsed
public boolean isCollapsed()
Description copied from interface:SRowReturns true if it has "collapsed" attribute
-
setCollapsed
public void setCollapsed(boolean collapsed)
Description copied from interface:SRowSets the "collapsed" attribute
-
-