Table layout for a small footprint device
AssigneeSun Microsystems, Inc.
InventorKevin Leduc
Life of this patent
Estimating the term…
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.
Claims18
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.
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.
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.
Dependencies are inferred from the claim text.