All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.abc.templates.IFillTableRow

public interface IFillTableRow

This interface is used by HtmlTable object. Object which will populate dynamic table with data must support this interface.

Example:

class MyHtmlPage implements IFillTableRow
{     
    ....
    HtmlTable table = (HtmlTable)template.getControl("table");
    table.setFiller( this );
    ....
}

HtmlTable will ask for more data by calling fillTableRow till it returns false;


 o fillTableRow(int iCurrentRow, HtmlTable table, HtmlWriter out)

   Filler must provide data for current row and return true or return false. Filler can provide only data only for one row per call.

 

 o fillTableRow
public abstract boolean fillTableRow(int iRow,
                                      HtmlTable table,
                                      HtmlWriter out) throws Exception

    Filler must provide data for current row and return true or return false. Filler can provide only data only for one row per call. 

Parameters:
iRow - current row (starting from 0 )
table - table object which is populated.
out - HtmlWriter object for this request.
Returns:
true if data has been provided or false if there is no more data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index