01: package org.osbl.issue.gui;
02:
03: import org.osbl.client.wings.concern.ObjectFormViewModes;
04: import org.osbl.issue.model.Issue;
05: import org.conform.modifier.InlineModifier;
06: import org.conform.wings.Editor;
07: import org.conform.wings.editor.BooleanEditor;
08: import org.conform.*;
09:
10: public class AttendToIssueForm extends IssueForm {
11: public AttendToIssueForm() {
12: addViewModeVariation(ObjectFormViewModes.ACTIVITY_VIEW,
13: new InlineModifier() {
14: protected void configure() {
15: if (Issue.class == bean().getType()) {
16: property("key").setWritable(false);
17: property("name").setWritable(false);
18: property("due").setWritable(false);
19: property("assignee").setWritable(false);
20: property("links").setWritable(false);
21: property("done").setWritable(false);
22: property("description").setWritable(false);
23:
24: property("description").setWritable(true);
25: property("links").setAttribute(
26: Editor.CUSTOM_EDITOR,
27: new ClickableLinksEditor());
28: property("done").setWritable(true);
29: property("done")
30: .setAttribute(
31: DefaultBeanData.PROPERTY_DATA_CLASS,
32: NowOrNeverPropertyData.class
33: .getName());
34: property("done")
35: .setAttribute(
36: org.conform.wings.Editor.CUSTOM_EDITOR,
37: new BooleanEditor());
38: }
39: }
40: });
41: setViewMode(ObjectFormViewModes.ACTIVITY_VIEW);
42: }
43: }
|