Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Using the Text Viewer Class

The text viewer object is a generic viewer that is the parent of two predefined viewer classes:

If, in a given object, you are displaying only external files or only catalog entries, use either an external file viewer or a catalog entry viewer. Use the Text Viewer class in any of these conditions:

All text viewers must be connected to a model. A model retrieves data and delivers lines of text to the text viewer for display. There are different models for the different types of text a text viewer might display. Two models are provided with SAS software:

If your viewer requires special functionality or if it needs to display text from any source not already covered by the provided models, you can create a custom model for it. To create a custom model, you can either subclass an existing model, or you can create a completely new model using the Text Model Template class. For examples, see the Text Model Template class and the External File Model class.


Making a Text Viewer

By default, the Text Viewer class is not on the Selection List opened by the Make item of the Actions menu. Therefore, to create a text viewer object, do one of the following:


Specifying a Model for a Text Viewer

To specify which model your text viewer should use, do one of the following:


Chapter Contents

Previous

Next

Top of Page

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