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 void
checkOrphan()
void
clearCell(int start, int end)
void
deleteCell(int cellIdx, int size)
void
destroy()
Destroy / release this model object, for example all the dependency, parent linking.SCell
getCell(int cellIdx)
AbstractCellAdv
getCell(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)
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
getEndCellIndex()
int
getHeight()
Integer
getHeightDirectly()
Get height directly.int
getIndex()
int
getOutlineLevel()
Returns the row groupingsSSheet
getSheet()
int
getStartCellIndex()
Map<String,Object>
getUpdates()
void
insertCell(int cellIdx, int size)
boolean
isCollapsed()
Returns true if it has "collapsed" attributeboolean
isCustomHeight()
boolean
isHidden()
boolean
isNull()
void
resetUpdates()
void
setCellStyle(SCellStyle cellStyle)
Set the local stylevoid
setCollapsed(boolean collapsed)
Sets the "collapsed" attributevoid
setCustomHeight(boolean custom)
void
setHeight(int height)
void
setHidden(boolean hidden)
void
setOutlineLevel(int outlineLevel)
Set row groupings (like groupRow) in a stream-friendly mannerString
toString()
-
-
-
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:
getCell
in 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:
getCell
in classAbstractRowAdv
-
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
-
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
-
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:
getCellIterator
in classAbstractRowAdv
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)
Description copied from interface:SRow
Set 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:SRow
Returns the row groupings
-
isCollapsed
public boolean isCollapsed()
Description copied from interface:SRow
Returns true if it has "collapsed" attribute
-
setCollapsed
public void setCollapsed(boolean collapsed)
Description copied from interface:SRow
Sets the "collapsed" attribute
-
-