01: package org.osbl.riskmanagement.gui.report;
02:
03: import org.osbl.client.wings.form.GenericObjectTreeModel;
04: import org.osbl.persistence.Persistence;
05: import org.osbl.ServiceProvider;
06: import org.osbl.riskmanagement.logic.RiskManagementLogic;
07: import org.osbl.riskmanagement.model.*;
08:
09: /**
10: * @author hengels
11: * @version $Revision$
12: */
13: public class RiskTreeModel extends GenericObjectTreeModel {
14: Persistence persistence = (Persistence) ServiceProvider
15: .getInstance().getService("RiskManagementPersistence");
16: RiskManagementLogic riskManagementLogic = (RiskManagementLogic) ServiceProvider
17: .getInstance().getService("RiskManagementLogic");
18:
19: {
20: map.put(Risk.class, RiskTreeTableNode.class);
21: }
22:
23: public RiskTreeModel() {
24: super (new RootTreeTableNode());
25: getRoot().setModel(this );
26: }
27:
28: public RiskManagementLogic getTreeLogic() {
29: return riskManagementLogic;
30: }
31:
32: public Persistence getPersistence() {
33: return persistence;
34: }
35: }
|