|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.util.html.HTMLTagAttributes
com.ibm.as400.util.html.HTMLTableCell
com.ibm.as400.util.html.HTMLTableHeader
public class HTMLTableHeader extends HTMLTableCell
The HTMLTableHeader represents an HTML table header tag.
This example creates an HTMLTableHeader and displays the tag output.
HTMLTableHeader header = new HTMLTableHeader();
header.setHorizontalAlignment(HTMLTableHeader.CENTER);
HTMLText headerText = new HTMLText("Customer Name");
header.setElement(headerText);
System.out.println(header.getTag());
Here is the output of the tag:
<th align="center">Customer Name</th>
Calling getFOTag() produces the following tag with the default cell border and padding properties:
<fo:table-cell border-style='solid' border-width='1px' padding='1px'> <fo:block font-weight='bold'><fo:block>Customer Name</fo:block> </fo:block> </fo:table-cell>
| Modifier and Type | Field and Description |
|---|
| Fields inherited from interface com.ibm.as400.util.html.HTMLConstants |
|---|
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CAPITALS, CENTER, CIRCLE, DISC, JUSTIFY, LARGE_ROMAN, LEFT, LOWER_CASE, LTR, MIDDLE, NUMBERS, RIGHT, RTL, SMALL_ROMAN, SQUARE, TARGET_BLANK, TARGET_PARENT, TARGET_SELF, TARGET_TOP, TEXTTOP, TOP |
| Constructor and Description |
|---|
HTMLTableHeader()
Constructs a default HTMLTableHeader object. |
HTMLTableHeader(HTMLTagElement element)
Constructs an HTMLTableHeader object with the specified data element. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFOTag()
Returns the XSL-FO table header tag. |
String |
getFOTag(HTMLTagElement element)
Returns the table header tag with the specified data element. |
String |
getTag()
Returns the table header tag. |
String |
getTag(HTMLTagElement element)
Returns the table header tag with the specified data element. |
boolean |
isUseFO()
Returns if Formatting Object tags are outputted. |
void |
setBorderWidth(int borderWidth)
Sets the border width in pixels. |
void |
setCellPadding(int cellPadding)
Sets the global table cell padding. |
void |
setUseFO(boolean useFO)
Sets if Formatting Object tags should be used. |
String |
toString()
Returns the HTML table header tag. |
| Methods inherited from class com.ibm.as400.util.html.HTMLTableCell |
|---|
addVetoableChangeListener, getColumnSpan, getDirection, getElement, getHeight, getHorizontalAlignment, getLanguage, getRowSpan, getVerticalAlignment, getWidth, isHeightInPercent, isWidthInPercent, isWrap, removeVetoableChangeListener, setColumnSpan, setDirection, setElement, setElement, setHeight, setHeight, setHeightInPercent, setHorizontalAlignment, setLanguage, setRowSpan, setVerticalAlignment, setWidth, setWidth, setWidthInPercent, setWrap |
| Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes |
|---|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLTableHeader()
public HTMLTableHeader(HTMLTagElement element)
element - An HTMLTagElement object containing the data.| Method Detail |
|---|
public String getTag()
getTag in interface HTMLTagElementgetTag in class HTMLTableCellpublic String getFOTag()
getFOTag in interface HTMLTagElementgetFOTag in class HTMLTableCellpublic String getFOTag(HTMLTagElement element)
getFOTag in class HTMLTableCellelement - The table cell element.public String getTag(HTMLTagElement element)
getTag in class HTMLTableCellelement - The table cell element.public boolean isUseFO()
isUseFO in class HTMLTableCellpublic void setBorderWidth(int borderWidth)
setBorderWidth in class HTMLTableCellborderWidth - The border width.public void setCellPadding(int cellPadding)
setCellPadding in class HTMLTableCellcellPadding - The cell padding.public void setUseFO(boolean useFO)
setUseFO in class HTMLTableCelluseFO - - true if output generated is an XSL formatting object, false if the output generated is HTML.public String toString()
toString in class HTMLTableCell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||