public class CurrentConditionsDisplay extends java.lang.Object implements java.util.Observer, DisplayElement
Modifier and Type | Field and Description |
---|---|
private float |
humidity |
(package private) java.util.Observable |
observable |
private float |
temperature |
Constructor and Description |
---|
CurrentConditionsDisplay(java.util.Observable observable) |
Modifier and Type | Method and Description |
---|---|
void |
display() |
void |
update(java.util.Observable obs,
java.lang.Object arg) |
java.util.Observable observable
private float temperature
private float humidity
public CurrentConditionsDisplay(java.util.Observable observable)
public void update(java.util.Observable obs, java.lang.Object arg)
update
in interface java.util.Observer
public void display()
display
in interface DisplayElement