|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.table.Cell
com.arctorus.documents.table.MergedCell
public final class MergedCell
Represents merged cell. Offers merging cells possibility.
Field Summary |
---|
Fields inherited from class com.arctorus.documents.table.Cell |
---|
NULL |
Constructor Summary | |
---|---|
MergedCell(Cell startCell,
Cell endCell)
Create new merged cell by merging all cells between startCell and endCell. |
Method Summary | |
---|---|
void |
addRun(Run run)
Add new text run to the cell. |
Cell |
getEndCell()
Get last cell of the merged cell. |
java.util.List<Run> |
getRuns()
Get list of text runs stored in the merged cell. |
Cell |
getStartCell()
Get first cell of the merged cell. |
CellStyleId |
getStyleId()
Get cell style id. |
boolean |
hasText()
Return true if cell has text runs. |
void |
setRuns(java.util.List<Run> runs)
Set list of text runs to store in the merged cell. |
void |
setStyle(CellStyle cellStyle)
Set cell style. |
void |
setStyleId(CellStyleId styleId)
Set cell style id. |
Methods inherited from class com.arctorus.documents.table.Cell |
---|
equalContent, getBorders, getColumnIndex, getRowIndex, hasBorders, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MergedCell(Cell startCell, Cell endCell) throws java.lang.NullPointerException, MergedCellException
startCell
- first cell to merge.endCell
- last cell to merge.
java.lang.NullPointerException
- if startCell or endCell are null.
MergedCellException
- thrown if
startCell.equals(endCell) ||
startCell.getColumnIndex() > endCell.getColumnIndex() ||
startCell.getRowIndex() > endCell.getRowIndex())
Method Detail |
---|
public Cell getStartCell()
public Cell getEndCell()
public java.util.List<Run> getRuns()
getRuns
in class Cell
public void setRuns(java.util.List<Run> runs)
setRuns
in class Cell
runs
- list of text runs.public boolean hasText()
hasText
in class Cell
public void addRun(Run run)
addRun
in class Cell
run
- text run to add.public CellStyleId getStyleId()
getStyleId
in class Cell
public void setStyleId(CellStyleId styleId)
setStyleId
in class Cell
styleId
- new style id of the cell.public void setStyle(CellStyle cellStyle)
setStyle
in class Cell
cellStyle
- new cell style.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |