DhElement | +--DhBaseContainer | +--DhTablepublic class DhTable
Creates a table element that can be populated with rows and columns.
Constructors
Name | Description |
---|---|
DhTable() | Creates a DhTable object. |
Methods
Name | Description |
---|---|
add(DhRow row, DhRow relativeTo, int insertFlag) | Adds a row to this table either at the top or the bottom, or before or after another the row depending on the DhInsertEnum insertFlag parameter. |
add(DhRow row, int insertFlag) | Adds a row to this table either at the top or bottom depending on the DhInsertEnum insertFlag parameter. |
add(DhRow row) | Adds a row at the bottom of this table. |
getBorder() |
Retrieves the default (non-CSS) border thickness of the table
Return Value: Returns the thickness of the border. |
getCell( int nRow, int nCol ) | Retrieves the cell at the given location. |
getFooterRow() | Retrieves the footer row if there is one. |
getHeaderRow( ) | Retrieves the header row if there is one. |
getPageSize() | Retrieves the current data page size, in rows, to display in a data-bound operation. |
getRepeaterClone() | Retrieves data row cloning for databound tables. |
getRow( int nRow ) | Retrieves the specified row. |
getRowCount() | Retrieves the number of rows in the table, including header and footer rows. |
getTagNameID() | Topic under construction. |
removeAll() | Topic under construction. |
removeBodyRows() | Topic under construction. |
setBorder( int width ) | Sets the default (non-CSS) border width for this table. |
setDataSource( DhDataSource ds ) |
Note This method is obsolete. |
setDataSource( DhDataSource ds, DhRow repeaterRow ) | Sets the data source and repeater row template for this table. |
setDataSource( DhElement ds ) |
Note This method is obsolete. |
setDataSource( DhElement ds, DhRow repeaterRow ) | Sets the data source and repeater row template for this table. |
setFooterRow( DhRow r ) | Sets the footer row to the DhRow specified. |
setHeaderRow( DhRow r ) | Sets the header row to the DhRow specified. |
setHTMLGenerator( DhHTMLGenerator htmlGen ) | Topic under construction. |
setPageSize( int nPageSize ) | Sets the display page size for this table when bound to data. |
setRepeaterClone( boolean value ) | Sets data row cloning for data-bound tables. |
showNextPage() | Displays the next page of data in the table. |
showPreviousPage() | Displays the previous page of data in the table. |
Creates a DhTable object. This default constructor creates an empty table element.
Adds a row to this table either at the top or the bottom, or before or after another the row depending on the DhInsertEnum insertFlag parameter.
Adds a row to this table either at the top or bottom depending on the DhInsertEnum insertFlag parameter.
Adds a row at the bottom of this table.
Returns the thickness of the border.
Retrieves the default (non-CSS) border thickness of the table
Returns the cell at the requested position.
Retrieves the cell at the given location.
wfc.html.DhElementNotFoundException thrown if there is no cell at the specified location.
Returns the footer DhRow, or returns null if no footer DhRow exists.
Retrieves the footer row if there is one.
Returns the header DhRow, or returns null if no header DhRow exists.
Retrieves the header row if there is one.
Retrieves the current data page size, in rows, to display in a data-bound operation.
Returns true if cloning is enabled; otherwise, false.
Retrieves data row cloning for databound tables. If true, generated data rows will be converted into DhElement derived items that you can interact with. This process considerably slows down table generation, so activate it only if you need to interact with, or sink events from, the elements in a databound table.
Returns the row at position nRow.
Retrieves the specified row. If a header row exists, 0 is specified for the header row; otherwise, it specifies the first row in the table body.
wfc.html.DhElementNotFoundException thrown if the row is not in the table.
Returns the total number of rows.
Retrieves the number of rows in the table, including header and footer rows.
Topic under construction.
Topic under construction.
Topic under construction.
Sets the default (non-CSS) border width for this table.
Note This method is obsolete.
Sets the data source and repeater row template for this table. The row template contains cells with items that have data field attributes set on them. This row and all its styles are copied for each record in the database. To access the generated rows, call setRepeaterClone( true ). By default, this is set to false because cloning is time and processor intensive.
Note This method is obsolete.
Sets the data source and repeater row template for this table. The row template contains cells with items that have data field attributes set on them. This row and all its styles are copied for each record in the database. To access the generated rows, call setRepeaterClone( true ). By default, this is set to false because cloning is time and processor intensive.
Sets the footer row to the DhRow specified.
Sets the header row to the DhRow specified.
Topic under construction.
setHTMLGenerator(DhHTMLGenerator) in DhBaseContainer.
Sets the display page size for this table when bound to data.
Sets data row cloning for data-bound tables. If true, generated data rows will be converted into DhElement-derived items that you can interact with. This process considerably slows down table generation, so activate it only if you need to interact with, or sink events from, the elements in a databound table.
Displays the next page of data in the table.
Displays the previous page of data in the table.