|
||||||||||
| 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
Abstract class that defines an HTML table "widget" (cell, row, table). Encapsulates all the attributes of such elements, their accessors, validations, and default values.
| Field Summary |
| Fields inherited from class com.ge.research.html.HTMLTag |
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE |
| Constructor Summary | |
protected |
TableElement(java.lang.String tagName)
Default constructor. |
| Method Summary | |
java.lang.String |
getAlign()
Returns the value of the HTML Tag ALIGN attribute. |
java.lang.String |
getBackground()
Returns the value of the HTML Tag BACKGROUND attribute. |
java.lang.String |
getBgColor()
Returns the value of the HTML Tag BACKGROUND COLOR attribute. |
int |
getBorder()
Returns the value of the HTML Tag BORDER WIDTH attribute. |
java.lang.String |
getBorderColor()
Returns the value of the HTML Tag BORDERCOLOR attribute. |
java.lang.String |
getBorderColorDark()
Returns the value of the HTML Tag BORDERCOLORDARK attribute. |
java.lang.String |
getBorderColorLight()
Returns the value of the HTML Tag BORDERCOLORLIGHT attribute. |
int |
getCellPadding()
Returns the value of the HTML Tag CELLPADDING attribute. |
int |
getCellSpacing()
Returns the value of the HTML Tag CELLSPACING attribute. |
int |
getColspan()
Returns the value of the HTML Tag COLSPAN attribute. |
java.lang.String |
getFrame()
Returns the value of the HTML Tag FRAME attribute. |
java.lang.String |
getHeight()
Returns the value of the HTML Tag HEIGHT attribute. |
boolean |
getNowrap()
Returns the value of the HTML Tag NOWRAP attribute. |
int |
getRowspan()
Returns the value of the HTML Tag ROWSPAN attribute. |
java.lang.String |
getRules()
Returns the value of the HTML Tag RULES attribute. |
java.lang.String |
getVAlign()
Returns the value of the HTML Tag VALIGN attribute. |
java.lang.String |
getWidth()
Returns the value of the HTML Tag WIDTH attribute. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setAlign(java.lang.String attribute)
Sets the align attribute and validates its value. |
void |
setBackground(java.lang.String attribute)
Sets the HTML Tag BACKGROUND attribute. |
void |
setBgColor(java.lang.String attribute)
Sets the HTML Tag BACKGROUND COLOR attribute. |
void |
setBorder(int attribute)
Sets the HTML Tag BORDER WIDTH attribute. |
void |
setBorderColor(java.lang.String attribute)
Sets the HTML Tag BORDER COLOR attribute. |
void |
setBorderColorDark(java.lang.String attribute)
Sets the HTML Tag BORDERCOLORDARK attribute. |
void |
setBorderColorLight(java.lang.String attribute)
Sets the HTML Tag BORDERCOLORLIGHT attribute. |
void |
setCellPadding(int attribute)
Sets the HTML Tag CELLPADDING attribute. |
void |
setCellSpacing(int attribute)
Sets the HTML Tag CELLSPACING attribute. |
void |
setColspan(int attribute)
Sets the HTML Tag COLSPAN attribute. |
void |
setFrame(java.lang.String attribute)
Sets the FRAME attribute and validates its value. |
void |
setHeight(int attribute,
boolean asPercent)
Sets the HTML Tag HEIGHT attribute. |
void |
setNowrap(boolean attribute)
Sets the HTML Tag NOWRAP attribute. |
void |
setRowspan(int attribute)
Sets the HTML Tag ROWSPAN attribute. |
void |
setRules(java.lang.String attribute)
Sets the RULES attribute and validates its value. |
void |
setVAlign(java.lang.String attribute)
Sets the VALIGN attribute and validates its value. |
void |
setWidth(int attribute,
boolean asPercent)
Sets the HTML Tag WIDTH attribute. |
protected void |
writeTagSpecificAttributes()
Adds the tag specific attribute information to the HTML Tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected TableElement(java.lang.String tagName)
tagName - the HTML type of this tag| Method Detail |
public java.lang.String getAlign()
public java.lang.String getBackground()
public java.lang.String getBgColor()
public int getBorder()
public java.lang.String getBorderColor()
public java.lang.String getBorderColorLight()
public java.lang.String getBorderColorDark()
public int getCellPadding()
public int getCellSpacing()
public int getColspan()
public java.lang.String getFrame()
public java.lang.String getHeight()
public boolean getNowrap()
true if the contents of the tag do not word wrap;
false if the contents of the tag should word wrappublic int getRowspan()
public java.lang.String getRules()
public java.lang.String getVAlign()
public java.lang.String getWidth()
public void setAlign(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new align valueTagPropertyConstants.isAlignType(java.lang.String),
HTMLTag.reconstructTagpublic void setBackground(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BACKGROUND attributeHTMLTag.reconstructTagpublic void setBgColor(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BACKGROUND COLOR attributeHTMLTag.reconstructTagpublic void setBorder(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BORDER WIDTH attributeHTMLTag.reconstructTagpublic void setBorderColor(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BORDER COLOR attributeHTMLTag.reconstructTagpublic void setBorderColorLight(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BORDERCOLORLIGHT attributeHTMLTag.reconstructTagpublic void setBorderColorDark(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BORDERCOLORDARK attributeHTMLTag.reconstructTagpublic void setCellPadding(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag CELLPADDING attributeHTMLTag.reconstructTagpublic void setCellSpacing(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag CELLSPACING attributeHTMLTag.reconstructTagpublic void setColspan(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag COLSPAN attributeHTMLTag.reconstructTagpublic void setFrame(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new FRAME valueTagPropertyConstants.isFrameType(java.lang.String),
HTMLTag.reconstructTag
public void setHeight(int attribute,
boolean asPercent)
HTMLTag.reconstructTag to true.
attribute - the new height valueasPercent - true if the value of attribute should be treated as a percentage, and thus append a percent sign after the height value;
false if the value should be treated as an absolute pixel specification, and written as isHTMLTag.reconstructTagpublic void setNowrap(boolean attribute)
HTMLTag.reconstructTag to true.
attribute - true if this HTML Tag contents should not be word wrapped;
false if this HTML Tag contents should be word wrapped.HTMLTag.reconstructTagpublic void setRowspan(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag ROWSPAN attributeHTMLTag.reconstructTagpublic void setRules(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new RULES valueTagPropertyConstants.isRulesType(java.lang.String),
HTMLTag.reconstructTagpublic void setVAlign(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new VALIGN valueTagPropertyConstants.isAlignType(java.lang.String),
HTMLTag.reconstructTag
public void setWidth(int attribute,
boolean asPercent)
HTMLTag.reconstructTag to true.
attribute - the new width valueasPercent - true if the value of attribute should be treated as a percentage, and thus append a percent sign after the width value;
false if the value should be treated as an absolute pixel specification, and written as isHTMLTag.reconstructTagprotected 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 HTMLTagHTMLTag.reset()protected void writeTagSpecificAttributes()
HTMLTagHTMLTag.toString().
This method is not implemented in HTMLTag.
Subclasses that contain additional attribute information should implement this method to write those attributes in the inline tag.
writeTagSpecificAttributes in class HTMLTagHTMLTag.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||