public void setView(Displayable view) {
Log.log("InputModel.setView("+view+") 1");
super.setView(view);
Log.log("InputModel.setView("+view+") 2");
this.view = (InputView) view;
view.addCommand(new ActionCommand("${graph}", Command.SCREEN, 2) {
public Navigation execute(Displayable d) throws Exception {
return new Navigation("graph", period, null);
}
});
view.addCommand(new ActionCommand("${save}", Command.BACK, 1) {
public Navigation execute(Displayable d) throws Exception {
InputView form = (InputView) d;
Observation observation = form.getObservation();
Observation existing = getObservationAt(observation.getDate());
if (existing != null) {