Squeak Class Documentation category index | class index  
 
CRDictionaryBrowserAppModel
  category: Genie-UI
  superclass: Model
  subclasses:

This is the application model of a dictionary browser.
Instances of CRDictionaryBrowser use an instances of this class to access a dictionary.
As an example, the application model encapsulates the lookup process and introduces a cache
for performance improvement.
Usually, there is one Application model for all open instance browsers.
See also description of class CRDictionaryBrowser.

instance methods
  accessing
  addFeature:toChar:
charOfFeature:
dictionary
featureCollectionOfChar:
featureCollectionWithFeature:
featureCountOfChar:
featureCountWithFeature:
lookup:fast:includeParents:
removeChar:
removeFeature:
renameChar:to:
resultCache
resultCacheWithParents

  initialize-release
  initializeDictionary:
newBrowser

  private
  clearResultCache
dictionary:
resultCache:
resultCacheWithParents:

  updating
  removeDependent:
update:

class methods
  instance creation
  dictionary:

instance methods
  accessing top  
 

addFeature:toChar:


 

charOfFeature:


 

dictionary


 

featureCollectionOfChar:


 

featureCollectionWithFeature:

Return the collection of all the features that are associated to the same character as
aCRFeature is associated to.


 

featureCountOfChar:


 

featureCountWithFeature:

Return the number of features associated to the character aCRFeature is associated to


 

lookup:fast:includeParents:

Lookup the given feature in the dictionary and update the cache


 

removeChar:


 

removeFeature:


 

renameChar:to:


 

resultCache


 

resultCacheWithParents


  initialize-release top  
 

initializeDictionary:


 

newBrowser

Create a new browser that shows the contents of this application model


  private top  
 

clearResultCache

Clear the result cache.
There are two result caches: One includes features of the parent dictionary while the
other on doesn't.


 

dictionary:


 

resultCache:


 

resultCacheWithParents:


  updating top  
 

removeDependent:

Remove the given object as one of the receiver's dependents.


 

update:

Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.


class methods
  instance creation top  
 

dictionary: