Class DefaultTable is an abstract class that is used to create table view for viewing tables from a database. It is designed to use a dynamic baseQuery object for quering the database. Usually you use the VW New Data Form... tool to create a table viewer and make this the superclass of the object you are creating. This allows you to remove the ownQuery method that is being created thus being overwridden by our methods for use of the dynamic queries. Base Query is based upon John Brant's Query Object. Of course though you can ignore the Base Query and use VW query editor to build your query and have a static query. DefaultTable is primarily used in conjuntion with CatModelWrapper for a default look and feel window. It also can allow the subclass to define what accept and remove mean. So its subclasses can do the transactions that it wants to do. The way is by redefining the methods acceptDatabase and removeDatabase. It stores the new entered values in the variable tempRow. There are methods used to access the variable so that the original values can be obtained. There is also another variable called origRow which is the row before any changes had been entered. To create new rows in the database, call endCreating: anArrayValue. To remove rows, call removeRow: anArrayValue. To edit new ros in the database (updating), call endEditing: anArrayValue. The method acceptDatabase must return a boolean that tells whether or not the database transaction has been successful. Example of Use: "wrapper := CatModelWrapper models: (Array with: (detailed := DetailedTable tableType new)) windowLabel: 'Detailed Transactions'. detailed queryDescription: queryDescriptor; baseQuery: aQuery. wrapper state: state; subMenuName: 'Tools'; open" Instance Variables:
Variable has invalid type -
#('startFindLocation' 'aClass'), #('notes' 'aClass'), #('changedDict' 'aClass'),
#('rowList' 'aClass'), #('origRow' 'aClass'), #('previousSearch' 'aClass'),
#('action' 'aClass'), #('queryDescription' 'aClass'), #('curRow' 'aClass'),
#('endFindLocation' 'aClass'), #('count' 'aClass'), #('displayedCount' 'aClass')