|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.table.Cell
public class Cell
Table cell. Contains text, style and collection of borders.
By default cell doesn't contain a text. Style is set to default.
Run
,
CellStyle
Field Summary | |
---|---|
static Cell |
NULL
NULL cell. |
Method Summary | |
---|---|
void |
addRun(Run run)
Add new text run to the cell. |
boolean |
equalContent(Cell cell)
Indicates whether the content of the specified cell (style, borders and text) is "equal to" the content of this cell. |
CellBorders |
getBorders()
Get borders for the cell. |
int |
getColumnIndex()
Get zero based column index of the cell in a table. |
int |
getRowIndex()
Get zero based row index of the cell in a table. |
java.util.List<Run> |
getRuns()
Get list of text runs of the cell. |
CellStyleId |
getStyleId()
Get style id of the cell. |
boolean |
hasBorders()
Determines whether the cell has any borders. |
boolean |
hasText()
Return true if the cell has text runs. |
void |
setRuns(java.util.List<Run> runs)
Set text in the cell. |
void |
setStyle(CellStyle cellStyle)
Set new style of the cell. |
void |
setStyleId(CellStyleId styleId)
Set new style id of the cell. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Cell NULL
Method Detail |
---|
public int getRowIndex()
public int getColumnIndex()
public java.util.List<Run> getRuns()
public boolean hasText()
public void setRuns(java.util.List<Run> runs)
runs
- list of text runs to set. If runs parameter is null then do nothing.public void addRun(Run run)
run
- text run to add.public CellStyleId getStyleId()
public void setStyleId(CellStyleId styleId)
styleId
- new style id of the cell.public void setStyle(CellStyle cellStyle)
cellStyle
- new cell style.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equalContent(Cell cell)
cell
- cell to compare with this one.public CellBorders getBorders()
public boolean hasBorders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |