| |
CRDictionaryBrowser
category: Genie-UI
superclass: Model
subclasses:
This class is used to browse a dictionary.
As all the other parts of the genie UI, the dictionary browser is built according to the MVC model.
Here a short description of all the classes participating in a single dictionary browser.
(Note: There are different views on a dictionary. Here, only the browser view is described)
CRDictionary (Model)
Instances of this class store and manage all the dictionary data.
CRDictionaryBrowserAppModel (Application Model)
This is the application model of a dictionary. Every dictionary browser uses an
application model to communicate with the dictionary. (As an example, the application
model has a cache holding distances between the features in the dictionary).
Every browser opened on a certain dictionary should use the same application model.
(However, it would also be possible to use more than one application model per dictionary)
CRDictionaryBrowser (View)
This class is part of the view in the MVC model. It manages all the properties of a
single browser view (layout properties, etc). The actual visual representation is
realized by using a (nested) PluggableCollectionMorph.
(Basically it's possible to open multiple visual representations on one single instance of this
class. But, all these instances share common layout properties. This is usually not
wanted and thus it is better to create a new instance of this class for every view).
PluggableCollectionMorph (View)
Objects of this class can represent the contents of a collection in a very flexible way.
The class is built in according to all the other pluggable morphs in Squeak. In the
case of the dictionary browser, objects of CRDictionaryBrowser are the models of
the PluggableCollectionMorphs.




|
|