| 
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--weblogic.html.HtmlElement
        |
        +--weblogic.html.ElementWithAttributes
              |
              +--weblogic.html.MultiPartElement
                    |
                    +--weblogic.html.TableRowElement
A TableRowElement is used to build the rows of an htmlKona TableElement. Use the addElement() method in the TableElement class to add a TableRowElement to a table. For example, this shows how to created a nested table by adding TableRowElements to a TableElement tab:
  TableElement tab = new TableElement();
   tab.addElement(new TableRowElement()
                  .addElement(new TableHeadingElement("Topic"))
                  .addElement(new TableHeadingElement("Value")));
   tab.addElement(new TableRowElement()
                  .addElement(new TableDataElement(reg.getID())
                              .setVAlign(AlignType.top))
                  .addElement(new TableDataElement(new TableElement(reg.getMain())
                                                   .setCaption(new BoldElement("N1"))
                                                   .setBorder(1))
                              .setVAlign(AlignType.top)));
 and so forth.
 A TableRowElement can be constructed with a dbKona Schema object, which supplies details about the name and width of each column and the total number of columns in the row.
TableElement, 
Schema, 
Record, 
TableElement| Fields inherited from class weblogic.html.HtmlElement | 
codeset,  
useObsolete | 
| Constructor Summary | |
TableRowElement()
Deprecated. Constructs a TableRowElement.  | 
|
TableRowElement(HtmlElement elem)
Deprecated. Constructs a TableRowElement with the specified HtmlElement.  | 
|
TableRowElement(int numcols)
Deprecated. Constructs a TableRowElement with the specified number of columns.  | 
|
TableRowElement(Record rec)
Deprecated. Constructs a TableRowElement with the specified dbKona Record.  | 
|
TableRowElement(Schema sch)
Deprecated. Constructs a TableRowElement based on the specified Schema.  | 
|
TableRowElement(java.lang.String str)
Deprecated. Constructs a TableRowElement with the specified String.  | 
|
TableRowElement(java.lang.String[] strs)
Deprecated. Constructs a TableRowElement with one column for each element in the strs array.  | 
|
TableRowElement(java.lang.String[] strs,
                int count)
Deprecated. Constructs a TableRowElement with one column for the first count elements in the strs array.  | 
|
| Method Summary | |
 TableRowElement | 
addElement(HtmlElement val)
Deprecated. Adds the specified HtmlElement as a TableDataElement to a TableRowElement.  | 
 TableRowElement | 
addElement(java.lang.String str)
Deprecated. Adds the specified string as a TableDataElement to a TableRowElement.  | 
 TableRowElement | 
addElement(TableDataElement val)
Deprecated. Adds the specified TableDataElement to a TableRowElement.  | 
 TableDataElement | 
getCellAt(int pos)
Deprecated. Gets the cell at the specified position of a TableRowElement.  | 
 TableDataElement | 
getElementAt(int pos)
Deprecated. Gets the TableDataElement at the specified position of a TableRowElement.  | 
protected  java.lang.String | 
getHtmlCode()
Deprecated.  | 
 int | 
getNumCells()
Deprecated. Gets the number of cells in a TableRowElement.  | 
protected  boolean | 
printCR()
Deprecated.  | 
 TableRowElement | 
setAlign(AlignType val)
Deprecated. Sets the horizontal alignment (ALIGN) of a TableRowElement.  | 
 TableRowElement | 
setBgColor(java.awt.Color color)
Deprecated. Sets the background color attribute for a TableRowElement.  | 
 TableRowElement | 
setBgColor(java.lang.String color)
Deprecated. Sets the background color attribute for a TableRowElement.  | 
 TableRowElement | 
setVAlign(AlignType val)
Deprecated. Sets the vertical alignment (VALIGN) of a TableRowElement.  | 
| Methods inherited from class weblogic.html.MultiPartElement | 
addHeadMultiElement, 
addMultiElement, 
getMultiElementAt, 
getNumElements, 
printBody, 
printBody, 
printBody, 
removeElement, 
removeElementAt, 
replaceElementAt, 
replaceMultiElementAt, 
widthAsLiteral | 
| Methods inherited from class weblogic.html.ElementWithAttributes | 
addAttribute, 
addAttribute, 
escapeQuotes, 
getBooleanAttribute, 
getElementAttribute, 
getLocalVar, 
getQuotedAttribute, 
output, 
output, 
output, 
printBody, 
printEndingTag, 
setBooleanAttribute, 
setBooleanAttribute, 
setClass, 
setDirection, 
setElementAttribute, 
setElementAttribute, 
setElementAttribute, 
setElementAttribute, 
setElementAttribute, 
setId, 
setLang, 
setLocalVar, 
setQuotedAttribute, 
setStyle | 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait | 
| Constructor Detail | 
public TableRowElement()
public TableRowElement(Schema sch)
                throws java.sql.SQLException,
                       DataSetException
sch - Schema objectpublic TableRowElement(java.lang.String[] strs)
str - String object
public TableRowElement(java.lang.String[] strs,
                       int count)
strs - String objectcount - Number of strs to addpublic TableRowElement(java.lang.String str)
str - String objectpublic TableRowElement(int numcols)
numcols - Number of columnspublic TableRowElement(HtmlElement elem)
elem - HtmlElement object
public TableRowElement(Record rec)
                throws java.sql.SQLException,
                       DataSetException
rec - T3Server Record object| Method Detail | 
protected java.lang.String getHtmlCode()
protected boolean printCR()
public TableRowElement addElement(java.lang.String str)
str - String objectpublic TableRowElement addElement(HtmlElement val)
val - HtmlElementObjectpublic TableRowElement addElement(TableDataElement val)
val - TableDataElementpublic TableDataElement getCellAt(int pos)
pos - Index positionpublic TableDataElement getElementAt(int pos)
pos - Index positionpublic TableRowElement setAlign(AlignType val)
val - AlignType objectpublic TableRowElement setBgColor(java.lang.String color)
color - HtmlColor constant or hex RGB valueHtmlColorpublic TableRowElement setBgColor(java.awt.Color color)
color - java.awt.Color objectpublic TableRowElement setVAlign(AlignType val)
val - AlignType objectpublic int getNumCells()
  | 
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||