public class Cell extends HTMLTag
Modifier and Type | Class and Description |
---|---|
static class |
Cell.Type
The possible types of a cell
|
Constructor and Description |
---|
Cell(Cell.Type type) |
Cell(Cell spannedCell) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Returns the textual content of the cell, still as HTML
|
java.lang.String |
getContentAsText()
Returns the textual content of the cell, with HTML stripped out and entities resolved
|
java.lang.String |
getOuterHTML()
Returns the full HTML of the cell (the full tag and contents)
|
Cell |
getSpannedCell()
Returns the cell this cell spans from, or null if this cell doesn't span another cell
|
Cell.Type |
getType()
Returns the type of the cell
|
(package private) void |
setContent(java.lang.String content) |
(package private) void |
setContentAsText(java.lang.String textContent) |
(package private) void |
setOuterHTML(java.lang.String content) |
java.lang.String |
toString() |
addAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute
void setOuterHTML(@Nullable java.lang.String content)
void setContent(@Nullable java.lang.String content)
void setContentAsText(@Nullable java.lang.String textContent)
@NotNull public Cell.Type getType()
@Nullable public java.lang.String getContent()
@Nullable public java.lang.String getOuterHTML()
@Nullable public java.lang.String getContentAsText()
@Nullable public Cell getSpannedCell()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object