All Packages Class Hierarchy This Package Previous Next Index
Class com.abc.templates.HtmlTable
java.lang.Object
|
+----com.abc.templates.HtmlControl
|
+----com.abc.templates.HtmlTable
- public class HtmlTable
- extends HtmlControl
- implements Serializable
Object represent table. You must set filler object for table. Filler object has to
implements IFillTable interface. HtmlTable has all properties as html table tag has.
Example:
<Table border="1" width="100%" name="TABLE">
<tr>
<th width="16%" nowrap>Clock#</th>
<th width="16%" nowrap>Driver Licence</th>
<th width="16%" nowrap>State</th>
<th width="16%" nowrap>Issued date</th>
<th width="16%" nowrap>Expiration date</th>
</tr>
<tr>
<td width="16%" nowrap name="Employee"></td>
<td width="16%" nowrap name="DrLicence"></td>
<td width="16%" nowrap name="State"
align="center"></td>
<td width="16%" nowrap name="Issued"
align="center"></td>
<td width="16%" nowrap name="Expiration"
align="center"></td>
</tr>
</Table>
Please note capital T. It's because parser must distinguish between dynamic tables and
static. <th> or <td> fields indicates columns for table. You can refer to
columns by name or by number( starting from 0). Current version does not allow you to have
more than one row for header. Because of this only two rows permitted to describe table
layout, one for header and second for body(dynamic rows). You may use td tag for header
but then you must use "header' property to indicate that this field belong to header(
see TableField). You can cave empty table
( no body no header) and built it dynamicly(see AddFiled, AddHeader methods).
HtmlTable()
- constructor.
HtmlTable(HtmlTable)
- copy constructor.
AddField(TableField)
- adds field object to body of the table. You can use it to built HtmlTable object
dynamically.
AddHeader(TableField)
- adds field object to header of the table. You can use it to built HtmlTable object
dynamically.
Field(int iNum )
- returns TableField with index iNum.
Field(String sName)
- returns TableField with name == sName. That prefered method to access fields because
then you will be able to change order of columns in template file.
getAlign()
- returns "Align" property.
getBackground()
- returns "Background" property.
getBgcolor()
- returns "Bgcolor" property.
getBodyFields()
- returns vector of TableField for body of the table.
getBorder()
- returns "Border" property.
getBorderColor()
- returns "BorderColor" property.
getBorderColorDark()
- returns "BorderColorDark" property.
getBorderColorLight()
- returns "BorderColorLight" property.
getCellPadding()
- returns "CellPadding" property.
getCellSpacing()
- returns "CellSpacing" property.
getFiller()
- returns filler object for table
getHeaderFields()
- returns vector of TableField for header of the table
getHeight()
-
getValue()
- returns "". There is no value to return.
getWidth()
- returns "width" property.
setAlign(String)
- returns "align" property.
setBackground(String)
- sets "background" property.
setBgcolor(String)
-
setBodyFields(Vector)
- sets body fields for table.
setBorder(String)
-
setBorderColor(String)
-
setBorderColorDark(String)
-
setBorderColorLight(String)
-
setCellPadding(String)
-
setCellSpacing(String)
-
setFiller(IFillTableRow)
- sets filler for table.
setHeaderFields(Vector)
- sets header for table.
setHeight(String)
-
setValue(String)
- Does nothing. There is no value to set for table.
setWidth(String)
-

HtmlTable
public HtmlTable()

HtmlTable
public HtmlTable(HtmlTable tmp)

AddField
public final void AddField(TableField
field)

AddHeader
public final void AddHeader(TableField
field)

Field
public final TableField Field(int
iOrder)

Field
public final TableField Field(String
sName)

getAlign
public final String getAlign()

getBackground
public final String getBackground()

getBgcolor
public final String getBgcolor()

getBodyFields
public final Vector getBodyFields()

getBorder
public final String getBorder()

getBorderColor
public final String getBorderColor()

getBorderColorDark
public final String getBorderColorDark()

getBorderColorLight
public final String getBorderColorLight()

getCellPadding
public final String getCellPadding()

getCellSpacing
public final String getCellSpacing()

getFiller
public final IFillTableRow
getFiller()

getHeaderFields
public final Vector getHeaderFields()

getHeight
public final String getHeight()

getWidth
public final String getWidth()

setAlign
public final void setAlign(String sAlign)

setBackground
public final void setBackground(String sBackground)

setBgcolor
public final void setBgcolor(String sBgcolor)

setBodyFields
public final void setBodyFields(Vector body)

setBorder
public final void setBorder(String sBorder)

setBorderColor
public final void setBorderColor(String sBorderColor)

setBorderColorDark
public final void setBorderColorDark(String sBorderColorDark)

setBorderColorLight
public final void setBorderColorLight(String sBorderColorLight)

setCellPadding
public final void setCellPadding(String sPadding)

setCellSpacing
public final void setCellSpacing(String sSpacing)

setFiller
public final void setFiller(IFillTableRow
filler)

setHeaderFields
public final void setHeaderFields(Vector header)

setHeight
public final void setHeight(String sHeight)

setWidth
public final void setWidth(String sWidth)
All Packages Class Hierarchy This Package Previous Next Index