|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.html.HtmlElement edu.nrao.sss.html.HtmlTableRow
public class HtmlTableRow
A row in an HTML table.
Version Info:
$Revision: 483 $ |
$Date: 2007-03-23 16:48:30 -0600 (Fri, 23 Mar 2007) $ |
$Author: dharland $ |
Nested Class Summary | |
---|---|
static class |
HtmlTableRow.Type
Types of table rows. |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.html.HtmlElement |
---|
NBSP_HTML, NBSP_TEXT, NBSP_UNICODE |
Constructor Summary | |
---|---|
HtmlTableRow()
Creates a new data row. |
|
HtmlTableRow(HtmlTableRow.Type rowType)
Creates a new row of the given type. |
Method Summary | |
---|---|
void |
addCell(HtmlTableCell newCell)
Adds newCell to this row. |
List<HtmlTableCell> |
getCells()
Returns a copy of this row's list of cells. |
HtmlTable |
getParentTable()
Returns the table to which this row belongs. |
int |
getPositionInTable()
Returns the position of this row in its table. |
HtmlTableRow.Type |
getType()
Returns the type of this row. |
boolean |
isSimple()
Returns false. |
boolean |
removeCell(HtmlTableCell unwantedCell)
Removes unwantedCell from this row. |
HtmlTableCell |
removeCell(int index)
Removes the cell at index from this row. |
void |
setType(HtmlTableRow.Type newType)
Sets the type of this row. |
int |
size()
Returns the number of cells in this row. |
Methods inherited from class edu.nrao.sss.html.HtmlElement |
---|
addAttribute, copyAttributesOf, getAttribute, getAttributes, getAttributeValue, getTag, removeAllAttributes, removeAttribute, writeHtmlTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlTableRow()
public HtmlTableRow(HtmlTableRow.Type rowType)
rowType
- the type of this row, either header, data, or footer.
If this value is null, this row will
be a data row.Method Detail |
---|
public boolean isSimple()
isSimple
in class HtmlElement
public HtmlTable getParentTable()
public int getPositionInTable()
public void setType(HtmlTableRow.Type newType)
newType
- the type of this row. If this value is null,
this cell will be set to a data row.public HtmlTableRow.Type getType()
public void addCell(HtmlTableCell newCell)
newCell
to this row.
If the new cell is null or already in this row, this method does nothing. Otherwise the new cell is removed from its previous row, if any, and added to this one. The new cell's parent row is set to this one.
newCell
- a new cell for this row.public boolean removeCell(HtmlTableCell unwantedCell)
unwantedCell
from this row.
If the unwanted cell is null or not part of this row, this method does nothing. Otherwise the unwanted cell is removed from this row, and its parent row is set to null.
unwantedCell
- the cell to be removed from this row.
unwantedCell
was removed from this row.public HtmlTableCell removeCell(int index)
index
from this row.
index
- the index of the unwanted cell.
index
.public List<HtmlTableCell> getCells()
While the list is a copy, the cells in the returned list are the actual cells held in this row.
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |