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 ViewRiskForm extends RiskForm {
07: public ViewRiskForm() {
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: });
22: setViewMode(ObjectFormViewModes.ACTIVITY_VIEW);
23: }
24: }
|