Home Segments Index Top Previous Next

848: Mainline

The purpose of the meterViewHolder instance variable is to provide a place for an instance of a subclass of the View class. That subclass, the Meter subclass, has three variables—min, max and title—which define the characteristics of particular meters. The values of those variables are established by setters:

Meter class definition 
View subclass: #Meter 
  instanceVariableNames: 'min max title' 
  classVariableNames: '' 
  poolDictionaries: '' 
  category: 'Experiment' 
Meter method definition • instance 
setMin: aNumber 
  min := aNumber. 
Meter method definition • instance 
setMax: aNumber 
  max := aNumber.  
Meter method definition • instance 
setTitle: aString 
  title := aString.