FileDocCategorySizeDatePackage
Thermometer.javaAPI DocExample933Tue Jun 03 21:58:24 BST 1997BeansBook.Simulator

Thermometer

public class Thermometer extends Object implements TempChangeListener

Fields Summary
protected Temperature
theTemperature
Constructors Summary
Thermometer(Temperature temperature)

      theTemperature = temperature;

      // register for temperature change events
      theTemperature. addTempChangeListener(this);
   
Methods Summary
public voidtempChanged(TempChangedEvent evt)

      // do something with the temperature that we can retrieve
      // by calling evt.getTemperature()