Programmer's Guide > Programming and Scripting Techniques > Working with Tables
  
Working with Tables
Working with Tables Overview
The AOM contains interfaces that provide access to more than 100 Arbortext Editor table functions. With these interfaces, you can programmatically create and modify tables in any Arbortext Editor document using Java, JavaScript, VB, or VBScript. The entire Arbortext Editor table object model is exposed through the following set of interfaces:
Interface
Description
TableCell
A cell in a table.
TableColumn
A column in a table.
TableException
The Exception type thrown when an error is encountered.
TableGrid
In the Oasis Exchange Table model, a table consists of one or more grids, each of which can have a unique number of rows and columns. In the HTML and Arbortext table models, the grid is the sum of all the table rows and columns. This interface allows operation on those grids.
TableMulticell
A rectangular array of spanned cells in a table.
TableObject
The superinterface for TableCell, TableColumn, TableGrid, TableObjectStore, TableRow, TableRule, TableSet, and TableTilePlex.
TableObjectStore
A collection of TableObjects.
TableRectangle
A rectangle of contiguous cells.
TableRow
A row in a table.
TableRule
A rule in a table.
TableSet
A collection of one or more TableGrids.
TableTilePlex
A collection representing a table selection.
The following three code samples illustrate the basics of inserting and manipulating tables using these interfaces. The sample code is in JavaScript. The code will also work using the Microsoft JScript Engine with the noted modifications.