![]() |
![]() |
![]() |
![]() |
![]() |
|
According to the following definition, the createViews method starts
the GUI machinery in motion by creating a top pane and a graph pane, and
assigning those instances to local variables, theTopPane and
theMeterPane. The value of another local variable,
theCalorieViewManager, is the CalorieViewManager instance
itself, which is also, of course, the value of self. The local
variable is established because its name helps to make the relations among
the instances clearer as createViews grows more complex.
CalorieViewManager method definition instance createViews | theCalorieViewManager theTopPane theMeterPane | theCalorieViewManager := self. theTopPane := TopPane new. theMeterPane := MeterGraphPane new. ...