view.addCommand(new ActionCommand("${history}", Command.SCREEN, 5) {
public Navigation execute(Displayable d) throws Exception {
return new Navigation("history", period);
}
});
view.addCommand(new ActionCommand("${delete}", Command.SCREEN, 3){
public Navigation execute(Displayable d) throws Exception {
Observation observation = view.getSelectedObservation();
if(observation != null) {
LogicDAO.removeObservation(controler, observation, period);
return new Navigation("graph", period, observation);