01: package org.osbl.issue.gui;
02:
03: import org.osbl.client.wings.concern.ObjectFormViewModes;
04: import org.osbl.client.wings.form.editor.OneToManyInlineEditor;
05: import org.osbl.issue.model.Issue;
06: import org.conform.modifier.InlineModifier;
07:
08: public class ViewIssueForm extends IssueForm {
09: public ViewIssueForm() {
10: addViewModeVariation(ObjectFormViewModes.CREATE_VIEW,
11: new InlineModifier() {
12: protected void configure() {
13: if (Issue.class == bean().getType()) {
14: property("key").setWritable(false);
15: property("name").setWritable(false);
16: property("due").setWritable(false);
17: property("assignee").setWritable(false);
18: property("links").setWritable(false);
19: property("done").setWritable(false);
20: property("description").setWritable(false);
21: }
22: }
23: });
24: setViewMode(ObjectFormViewModes.CREATE_VIEW);
25: }
26: }
|