|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.pa.widget.TableElement
This class represents a single cell in a table.
Field Summary | |
protected java.lang.String |
align
|
protected java.lang.String |
bgColor
|
protected java.lang.String |
font
|
protected java.lang.String |
height
|
protected java.lang.String |
htmlBetween
|
protected java.lang.String |
width
|
Constructor Summary | |
TableElement()
TableElement constructor. |
Method Summary | |
java.lang.String |
getAlign()
This method returns the cell alignment |
java.lang.String |
getAlignString()
This method returns the cell alignment with the html "align=" prepended or an empty string "" if none was specified. |
java.lang.String |
getBgColor()
This method returns the cell background color |
java.lang.String |
getBgColorString()
This method returns the cell background color with the html "bgcolor=" prepended or an empty string "" if none was specified. |
java.lang.String |
getFont()
This method just returns the cell font. |
java.lang.String |
getHeight()
This method returns the cell height |
java.lang.String |
getHeightString()
This method returns the cell height with the html "height=" prepended or an empty string "" if none was specified. |
java.lang.String |
getHtmlBetween()
This method returns any other html text to be included in the table element tag or "" if none is specified. |
java.lang.String |
getWidth()
This method returns the cell width. |
java.lang.String |
getWidthString()
This method returns the cell width with the html "width=" prepended or an empty string "" if none was specified. |
java.lang.String |
render(java.lang.String data)
This method will render the parameter data as an element in a table. |
java.lang.String |
renderElementBegin()
This method will render the beginning tag for the element. |
java.lang.String |
renderElementEnd()
This method will render the ending tag for the element. |
void |
setAlign(java.lang.String newValue)
Set the alignment to use for the element. |
void |
setBgColor(java.lang.String newValue)
Set the background color to use for the element. |
void |
setFont(java.lang.String newValue)
Set the font to use for the element. |
void |
setHeight(java.lang.String newValue)
Set the height of the element. |
void |
setHtmlBetween(java.lang.String newValue)
Set any additional html to go inside the table element tag. |
void |
setWidth(java.lang.String newValue)
Set the width of the element. |
java.lang.String |
wrapWithFont(java.lang.String data)
This method returns the cell font wrapped around the data or just the data if no font was specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String align
protected java.lang.String bgColor
protected java.lang.String font
protected java.lang.String height
protected java.lang.String htmlBetween
protected java.lang.String width
Constructor Detail |
public TableElement()
Method Detail |
public java.lang.String getAlign()
public java.lang.String getAlignString()
public java.lang.String getBgColor()
public java.lang.String getBgColorString()
public java.lang.String getFont()
wrapWithCellFont
public java.lang.String getHeight()
public java.lang.String getHeightString()
public java.lang.String getHtmlBetween()
public java.lang.String getWidth()
public java.lang.String getWidthString()
public java.lang.String render(java.lang.String data)
public java.lang.String renderElementBegin()
public java.lang.String renderElementEnd()
public void setAlign(java.lang.String newValue)
newValue
- java.lang.Stringpublic void setBgColor(java.lang.String newValue)
newValue
- java.lang.Stringpublic void setFont(java.lang.String newValue)
newValue
- java.lang.Stringpublic void setHeight(java.lang.String newValue)
newValue
- java.lang.Stringpublic void setHtmlBetween(java.lang.String newValue)
newValue
- java.lang.Stringpublic void setWidth(java.lang.String newValue)
newValue
- java.lang.Stringpublic java.lang.String wrapWithFont(java.lang.String data)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |