01: package org.osbl.riskmanagement.gui;
02:
03: import org.osbl.client.wings.concern.ObjectFormViewModes;
04: import org.conform.modifier.InlineModifier;
05:
06: public class CareRiskForm extends RiskForm {
07: public CareRiskForm() {
08: addViewModeVariation(ObjectFormViewModes.ACTIVITY_VIEW,
09: new InlineModifier() {
10: protected void configure() {
11: property("type").setWritable(false);
12: property("coverage").setWritable(false);
13: property("amount").setWritable(false);
14: property("probability").setWritable(false);
15: property("comment").setWritable(false);
16: property("assignee").setWritable(false);
17: property("criticality").setWritable(false);
18: property("progression").setWritable(false);
19: property("obsolete").setWritable(false);
20:
21: property("coverage").setWritable(true);
22: property("amount").setWritable(true);
23: property("probability").setWritable(true);
24: property("comment").setWritable(true);
25:
26: property("coverage").setMandatory(true);
27: property("amount").setMandatory(true);
28: property("probability").setMandatory(true);
29: }
30: });
31: setViewMode(ObjectFormViewModes.ACTIVITY_VIEW);
32: }
33: }
|