1HTMLDocument.getTableCell(3kayKaa)ya module refereHnTcMeLDocument.getTableCell(3kaya)
2
3
4

NAME

6       HTMLDocument::getTableCell - Retrieve a table cell
7

SYNOPSIS

9       ElementTree getTableCell( ElementTree tsect, Int row, Int col )
10

ARGUMENTS

12       tsect The table header, footer or body section
13
14       row The row to retrieve from (starting at 0)
15
16       col The column to retrieve from (starting at 0)
17

DESCRIPTION

19       Retrieve a table cell so that content may be added to it. An Array.Out‐
20       OfBounds (3kaya) Exception will be thrown if the row and column are not
21       within the table.
22
23
24    table = addTable(parent,"Example table");
25    tbody = addTableBodySection(table);
26    for i in [0..2] {
27        void(addTableRow(tbody));
28    }
29    addTableColumns(table,3);
30    for i in [0..2] {
31        for j in [0..2] {
32            td = getTableCell(tbody,i,j);
33            addString(td,String(i+j));
34        }
35    }
36    /*
37    Example table
38    +---+---+---+
39    | 0 | 1 | 2 |
40    +---+---+---+
41    | 1 | 2 | 3 |
42    +---+---+---+
43    | 2 | 3 | 4 |
44    +---+---+---+
45    */
46
47       Naturally, the table in this simple example would be easier to generate
48       using HTMLDocument.initialiseTable (3kaya)
49
50

AUTHORS

52       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
53       (kaya@kayalang.org). For further information see http://kayalang.org/
54

LICENSE

56       The  Kaya  standard  library  is free software; you can redistribute it
57       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
58       License  (version  2.1  or  any later version) as published by the Free
59       Software Foundation.
60
62       HTMLDocument.addTableBodySection (3kaya)
63       HTMLDocument.addTableColumns (3kaya)
64       HTMLDocument.addTableRow (3kaya)
65       HTMLDocument.getTableBodySections (3kaya)
66       HTMLDocument.makeDataCell (3kaya)
67       HTMLDocument.makeHeaderCell (3kaya)
68       HTMLDocument.getTableFooter (3kaya)
69       HTMLDocument.getTableHeader (3kaya)
70
71
72
73Kaya                             December 2010HTMLDocument.getTableCell(3kaya)
Impressum