Table layout for a small footprint device
First Claim
Patent Images
1. A method for parsing a table, wherein the table comprises rows and columns, wherein the rows and columns define cells, the method comprising the steps of:
- parsing each cell of the table a first time, wherein said first parsing of a cell comprises laying out a cell content in a first layout according to a maximum possible cell width and storing information regarding the resulting layout of the cell content;
calculating a maximum possible column width for each column, wherein said calculating a maximum possible column width utilizes said information stored in said first parsing;
calculating a minimum possible column width for each column;
assigning an actual width to each column;
parsing each cell of the table a second time, wherein said second parsing comprises laying out the content of the cells in a different layout according to actual cell widths, wherein said actual cell widths are determined by said actual widths assigned to corresponding columns; and
assigning a height to each row.
2 Assignments
0 Petitions
Accused Products
Abstract
An efficient method is described for laying out a table for display. The method may be used to display tables on a small footprint device, such as a smart cellular phone, a personal data assistant, a handheld computer, etc. Small footprint devices typically have smaller displays than other computing systems such as desktop computers. In one embodiment the method is employed to lay out HTML tables in a web browser running on a small footprint device.
-
Citations
18 Claims
-
1. A method for parsing a table, wherein the table comprises rows and columns, wherein the rows and columns define cells, the method comprising the steps of:
-
parsing each cell of the table a first time, wherein said first parsing of a cell comprises laying out a cell content in a first layout according to a maximum possible cell width and storing information regarding the resulting layout of the cell content;
calculating a maximum possible column width for each column, wherein said calculating a maximum possible column width utilizes said information stored in said first parsing;
calculating a minimum possible column width for each column;
assigning an actual width to each column;
parsing each cell of the table a second time, wherein said second parsing comprises laying out the content of the cells in a different layout according to actual cell widths, wherein said actual cell widths are determined by said actual widths assigned to corresponding columns; and
assigning a height to each row. - View Dependent Claims (2, 3, 4, 5, 6)
said parsing each cell of the table a first time;
said calculating a maximum possible column width for each column; and
said calculating a minimum possible column width for each column.
-
-
4. The method of claim 1, wherein cells may span multiple columns and cells may span multiple rows.
-
5. The method of claim 1, wherein said table is a table described by a markup language.
-
6. The method of claim 1, wherein said table is an HTML table.
-
7. A memory medium comprising computer program instructions for parsing a table, wherein the table comprises rows and columns, wherein the rows and columns define cells, wherein the computer program instructions are executable to implement:
-
parsing each cell of the table a first time, wherein said first parsing of a cell comprises laying out a cell content in a first layout according to a maximum possible cell width and storing information regarding the resulting layout of the cell content;
calculating a maximum possible column width for each column, wherein said calculating a maximum possible column width utilizes said information stored in said first parsing;
calculating a minimum possible column width for each column;
assigning an actual width to each column;
parsing each cell of the table a second time, wherein said second parsing comprises laying out the content of the cells in a different layout according to actual cell widths, wherein said actual cell widths are determined by said actual widths assigned to corresponding columns; and
assigning a height to each row. - View Dependent Claims (8, 9, 10, 11, 12)
said parsing each cell of the table a first time;
said calculating a maximum possible column width for each column; and
said calculating a minimum possible column width for each column.
-
-
10. The memory medium of claim 7, wherein cells may span multiple columns and cells may span multiple rows.
-
11. The memory medium of claim 7, wherein said table is a table described by a markup language.
-
12. The memory medium of claim 7, wherein said table is an HTML table.
-
13. A small footprint device comprising a system memory, wherein the system memory stores a table and computer instructions, wherein said table comprises rows and columns, wherein the rows and columns define cells, and wherein said computer program instructions are executable to implement:
-
parsing each cell of the table a first time, wherein said first parsing of a cell comprises laying out a cell content in a first layout according to a maximum possible cell width and storing information regarding the resulting layout of the cell content;
calculating a maximum possible column width for each column, wherein said calculating a maximum possible column width utilizes said information stored in said first parsing;
calculating a minimum possible column width for each column;
assigning an actual width to each column;
parsing each cell of the table a second time, wherein said second parsing comprises laying out the content of the cells in a different layout according to actual cell widths, wherein said actual cell widths are determined by said actual widths assigned to corresponding columns; and
assigning a height to each row. - View Dependent Claims (14, 15, 16, 17, 18)
said parsing each cell of the table a first time;
said calculating a maximum possible column width for each column; and
said calculating a minimum possible column width for each column.
-
-
16. The small footprint device of claim 13, wherein cells may span multiple columns and cells may span multiple rows.
-
17. The small footprint device of claim 13, wherein said table is a table described by a markup language.
-
18. The small footprint device of claim 13, wherein said table is an HTML table.
Specification