Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Overview

The Row/Column Data Vector class is used for communication between models and viewers in the Data Form and Data Table classes. The Row/Column Data Vector class is useful to you if you want to do either of the following:

The model methods that use the Row/Column Data Vector class are:

The _getRowInfo, _getColumnInfo, _setRowInfo, and _setColumnInfo methods are methods of the Form Data Model class. The _getTitleInfo and _setTitleInfo methods are methods of the Table Data Model class.

The model subclasses of the Form Data Model class and the Table Data Model class, such as the Data Set Data Model class, override these methods to provide functionality specific for their model. Because every model class should be a subclass of the Form Data Model class or the Table Data Model class, the data vector is used by the above methods for all models.

For more information on the Form Data Model class, see the Form Data Model Class. For more information on the Table Data Model class, see the Table Data Model Class.

Most users of the Data Form and Data Table classes need not be concerned with the Row/Column Data Vector class. In the Data Form and Data Table classes, the Row/Column Data Vector class is used internally.

The Row/Column Data Vector class is used in conjunction with a data model to send and receive information about the way data are configured. For example, the Data Set Data Model class uses an instance of the Row/Column Data Vector class in its _getColumnInfo and _getRowInfo methods to fill in values for the viewer and in its _setColumnInfo and _setRowInfo methods to set values for the viewer.

Note that the Row/Column Data Vector class deals with information about the rows and columns rather than the row or column data themselves. The GET_DATA Data Vector class, on the other hand, deals with information about the data. In the table editor, most items set in the Row/Column Data Vector class are interpreted as row-and-column label cell information. In the form editor, most items set in the Row/Column Data Vector class are interpreted as label widget information.

For more information, see the GET_DATA Data Vector Class.

The _getColumnInfo method, the _getRowInfo method, and the _getTitleInfo method of the model take an instance of a Row/Column Data Vector as an argument. When the model is called, the viewer is responsible for creating that instance of the Row/Column Data Vector class. These model methods then fill in the elements of the Row/Column Data Vector class passed to it. When control is returned to the viewer, the viewer queries the elements set in the row/column data vector passed to the model.

Similarly, the _setColumnInfo method, the _setRowInfo method, and the _setTitleInfo method of the model take an instance of a row/column data vector as an argument. When the model is called with one of these methods, the viewer is responsible for creating that instance of the Row/Column Data Vector class. In these methods calls, the viewer is responsible for filling in the elements of the row/column data vector that it desires to be set in the model. The model then queries the elements set in the row/column data vector it receives and sets values accordingly.

Parent:
sashelp.fsp.object.class

Class:
sashelp.fsp.RCDVec.class


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.