|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.html.HTMLTag
com.ge.research.html.TableElement
com.ge.research.html.TableRowTag
Encapsulates all the attributes of an HTML "TR" element, its accessors, validations, and default values.
| Field Summary |
| Fields inherited from class com.ge.research.html.HTMLTag |
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE |
| Constructor Summary | |
TableRowTag()
Default constructor. |
|
| Method Summary | |
void |
addCell(TableDimensionTag td)
Adds a cell to the list of cells within the row. |
TableDimensionTag |
getCell(int index)
Returns the table row cell at the specified index within the list. |
java.util.List |
getCells()
Returns the List of cells for this row.
|
java.lang.String |
getCellString(int index)
Returns the string representation of the table row cell at the specified index within the list. |
int |
getNumCells()
Returns the current count of the number of cells in this row. |
boolean |
removeCell(int index)
Removes the table row cell at the specified index within the list. |
void |
removeCells()
Removes all cells from the list of cells within the row. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setCells(java.util.List list)
Sets the list of table row cells within the row. |
protected void |
writeTagSpecificData()
Adds each table cell tag within the row to the tag |
| Methods inherited from class com.ge.research.html.TableElement |
getAlign, getBackground, getBgColor, getBorder, getBorderColor, getBorderColorDark, getBorderColorLight, getCellPadding, getCellSpacing, getColspan, getFrame, getHeight, getNowrap, getRowspan, getRules, getVAlign, getWidth, setAlign, setBackground, setBgColor, setBorder, setBorderColor, setBorderColorDark, setBorderColorLight, setCellPadding, setCellSpacing, setColspan, setFrame, setHeight, setNowrap, setRowspan, setRules, setVAlign, setWidth, writeTagSpecificAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TableRowTag()
TagPropertyConstants.TABLE_ROW_TAG)
TagPropertyConstants.TABLE_ROW_TAG| Method Detail |
public void addCell(TableDimensionTag td)
HTMLTag.reconstructTag to true
td - the cell to add to the rowHTMLTag.reconstructTag
public TableDimensionTag getCell(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the list of cells to extract
java.lang.IndexOutOfBoundsException - If index is negative or if index is greater than or equal to the value of getNumCells()public java.util.List getCells()
List of cells for this row.
Each element of the List is of type TableDimensionTag
List of cells, of type TableDimensionTag, within the rowpublic java.lang.String getCellString(int index)
index - the index of the list of cells to extract
java.lang.IndexOutOfBoundsException - If index is negative or if index is greater than or equal to the value of getNumCells()getCell(int)public int getNumCells()
public boolean removeCell(int index)
throws java.lang.IndexOutOfBoundsException
HTMLTag.reconstructTag to true
index - the index of the list of cells to remove
true if the cell was successfully removed;
otherwise an exception is thrown
java.lang.IndexOutOfBoundsException - If index is negative or if index is greater than or equal to the value of getNumCells()HTMLTag.reconstructTagpublic void removeCells()
HTMLTag.reconstructTag to true
HTMLTag.reconstructTag
public void setCells(java.util.List list)
throws java.lang.ClassCastException
list is not null or empty, checks to make sure
that all elements of list are of type TableDimensionTag.
If so, it first removes all previously existing cells, updating the current cell count to zero.
Then it adds the contents of the list argument to the list of table row cells, in the same order as they appear in list.
If during this operation an element of list is found to not be of type TableDimensionTag,
then the table cell list is purged and an exception is thrown.
list - the new list of table row cells for this table row
java.lang.ClassCastException - If any elements of list are not of type TableDimensionTag.
If this is found to be the case prior to attempting to add the list contents to this tag, then the original list of table row cells is left unchanged.
If however this is found during updating the table row cell list, then the entire list is purged.removeCells(),
addCell(com.ge.research.html.TableDimensionTag)protected void resetTagSpecificInformation()
HTMLTagHTMLTag.reset().
This method is not implemented in HTMLTag.
Subclasses that contain tag content information should implement this method to set their information to their default values.
resetTagSpecificInformation in class TableElementprotected void writeTagSpecificData()
writeTagSpecificData in class HTMLTagHTMLTag.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||