|
||||||||||
| 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.TableTag
Encapsulates all the attributes of an HTML "TABLE" 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 | |
TableTag()
Default constructor. |
|
| Method Summary | |
void |
addRow(TableRowTag tr)
Adds a row to the list of rows within the table. |
int |
getNumRows()
Returns the current count of the number of rows in this table. |
TableRowTag |
getRow(int index)
Returns the table row at the specified index within the list. |
java.util.List |
getRows()
Returns the List of rows for this row.
|
java.lang.String |
getRowString(int index)
Returns the string representation of the table row at the specified index within the list. |
boolean |
removeRow(int index)
Removes the table row at the specified index within the list. |
void |
removeRows()
Removes all rows from the list of rows within the table. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setRows(java.util.List list)
Sets the list of table rows within the table. |
protected void |
writeTagSpecificData()
Adds each table row tag within the table 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 TableTag()
TagPropertyConstants.TABLE_TAG)
TagPropertyConstants.TABLE_TAG| Method Detail |
public void addRow(TableRowTag tr)
HTMLTag.reconstructTag to true
tr - the row to add to the tableHTMLTag.reconstructTagpublic int getNumRows()
public TableRowTag getRow(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the list of rows to extract
java.lang.IndexOutOfBoundsException - If index is negative or if index is greater than or equal to the value of getNumRows()public java.util.List getRows()
List of rows for this row.
Each element of the List is of type TableRowTag
List of rows, of type TableRowTag, within the table
public java.lang.String getRowString(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the list of rows to extract
java.lang.IndexOutOfBoundsException - If index is negative or if index is greater than or equal to the value of getNumRows()getRow(int)
public boolean removeRow(int index)
throws java.lang.IndexOutOfBoundsException
HTMLTag.reconstructTag to true
index - the index of the list of rows to remove
true if the row 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 getNumRows()HTMLTag.reconstructTagpublic void removeRows()
HTMLTag.reconstructTag to true
HTMLTag.reconstructTag
public void setRows(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 TableRowTag.
If so, it first removes all previously existing rows, updating the current row count to zero.
Then it adds the contents of the list argument to the list of table rows, in the same order as they appear in list.
If during this operation an element of list is found to not be of type TableRowTag,
then the table row list is purged and an exception is thrown.
list - the new list of table rows for this table
java.lang.ClassCastException - If any elements of list are not of type TableRowTag.
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 rows is left unchanged.
If however this is found during updating the table row list, then the entire list is purged.removeRows(),
addRow(com.ge.research.html.TableRowTag)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 | |||||||||