.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.getTableCell" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::getTableCell \- Retrieve a table cell .SH "SYNOPSIS" .B ElementTree getTableCell( \fIElementTree tsect, Int row, Int col\fP .B ")" .SH "ARGUMENTS" .PP .B "tsect" The table header, footer or body section .PP .B "row" The row to retrieve from (starting at 0) .PP .B "col" The column to retrieve from (starting at 0) .SH "DESCRIPTION" .PP Retrieve a table cell so that content may be added to it. An .B "Array.OutOfBounds"(3kaya) Exception will be thrown if the row and column are not within the table. .IP "" -4 table = addTable(parent,"Example table"); tbody = addTableBodySection(table); for i in [0..2] { void(addTableRow(tbody)); } addTableColumns(table,3); for i in [0..2] { for j in [0..2] { td = getTableCell(tbody,i,j); addString(td,String(i+j)); } } /* Example table +---+---+---+ | 0 | 1 | 2 | +---+---+---+ | 1 | 2 | 3 | +---+---+---+ | 2 | 3 | 4 | +---+---+---+ */ .PP Naturally, the table in this simple example would be easier to generate using .B "HTMLDocument.initialiseTable"(3kaya) .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "HTMLDocument.addTableBodySection"(3kaya) .PP .B "HTMLDocument.addTableColumns"(3kaya) .PP .B "HTMLDocument.addTableRow"(3kaya) .PP .B "HTMLDocument.getTableBodySections"(3kaya) .PP .B "HTMLDocument.makeDataCell"(3kaya) .PP .B "HTMLDocument.makeHeaderCell"(3kaya) .PP .B "HTMLDocument.getTableFooter"(3kaya) .PP .B "HTMLDocument.getTableHeader"(3kaya) .PD 0.4v