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