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
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCell(int start, int end) voiddeleteCell(int cellIdx, int size) voiddestroy()Destroy / release this model object, for example all the dependency, parent linking.getCell(int cellIdx) getCell(int columnIdx, boolean proxy) getCellIterator(boolean reverse) getCellIterator(boolean reverse, int start, int end) getCellIterator(int start, int end) 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 parentintintGet height directly.intgetIndex()intReturns the row groupingsgetSheet()intvoidinsertCell(int cellIdx, int size) booleanReturns true if it has "collapsed" attributebooleanbooleanisHidden()booleanisNull()voidvoidsetCellStyle(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 mannertoString()
-
Constructor Details
-
RowImpl
-
-
Method Details
-
getSheet
-
getIndex
public int getIndex()- Returns:
- 0-based row index
-
isNull
public boolean isNull() -
getCell
- 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
- 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
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
-
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
-
getUpdates
-
resetUpdates
public void resetUpdates() -
getCellIterator
-
getCellIterator
- Specified by:
getCellIteratorin classAbstractRowAdv
-
toString
-
getCellIterator
- Returns:
-
getCellIterator
- Returns:
-
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 -
getHeightDirectly
Description copied from interface:SRowGet height directly. Internal used only.
-