The Table Library allows you to easily create dynamic scrolling tables. By using objects from
TableClass
, you can create tables with certain characteristics; in particular, tables with many rows, with the data organized by column. For example, you could use
TableClass
to present a phone number list. One column might have a person's name, the next the phone number, the next the fax number, and so on. Each row would have the same basic format, though it would have different contents. The
Table
is designed primarily for text tables, though it can display anything you wish to draw.
You can give each column its own characteristics. Users may begin entering data directly into the Table; the
TableClass
object will automatically present a VisText to let the user enter text, then send a message to itself to replace the cell's contents with the new text; you can subclass that message if you need to check the text the user has entered or perform some operation on the new data.
The Table object does not actually store data; it rather helps you organize data stored elsewhere, and helps you display that data in a tabular format. It also makes it much easier for a user to edit the data.
1 Table Objects
2 TableClass Overview
3 TableClass Instance Data
3.1 Table Attributes
3.2 Defining Columns
3.3 Working with Rows
4 Using a Table Object
4.1 Drawing Cells
4.2 Selecting Cells
4.3 Editing Cells
4.4 Dragging and Dropping
4.5 Custom Scrolling Behavior
4.6 Handling Locator Searches
4.7 Table Headings
4.8 Changing Column Definitions
5 TableContentClass
5.1 TableContent Instance Data
5.2 Altering TableContent Instance Data
6 LocatorClass
6.1 Index Mode
6.2 Text Mode
6.3 LocatorClass Instance Data
6.4 Locator Actions