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 EditIssueForm extends IssueForm {
09: public EditIssueForm() {
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: property("due").setWritable(true);
23: property("assignee").setWritable(true);
24: property("links").setWritable(true);
25: property("done").setWritable(false);
26: property("description").setWritable(true);
27:
28: property("links")
29: .setAttribute(
30: org.conform.wings.Editor.CUSTOM_EDITOR,
31: new OneToManyInlineEditor());
32: }
33: }
34: });
35: setViewMode(ObjectFormViewModes.CREATE_VIEW);
36: }
37: }
|