|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectclock.View
@ClassPreamble(author="Ian Barnes",
date="01.04.2007",
currentRevision=2,
lastModified="29.03.2007",
lastModifiedBy="abx")
@ToDo(value={"Add menu","Implement Listeners","Turn into AlarmClock"})
public class ViewThe View class represents the data of the Model class
| Field Summary | |
|---|---|
(package private) AnalogClockPanel |
panel
|
| Constructor Summary | |
|---|---|
View(Model model)
constructor for the View object: creates an instance of AnalogClockPanel which uses the provided model |
|
| Method Summary | |
|---|---|
void |
update(java.util.Observable o,
java.lang.Object arg)
implements Observer interface by repainting the panel in accordance with the latest data from the model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
AnalogClockPanel panel
| Constructor Detail |
|---|
public View(Model model)
model - Model object with time dataModel,
AnalogClockPanel| Method Detail |
|---|
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observero - the observable object (model)arg - the additional data passed to notifyObservers method (none, here)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||