1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.uif.container; |
17 | |
|
18 | |
import org.kuali.rice.kns.document.Document; |
19 | |
import org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder; |
20 | |
import org.kuali.rice.kns.web.derivedvaluesetter.DerivedValuesSetter; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public class DocumentView extends FormView { |
33 | |
private static final long serialVersionUID = 2251983409572774175L; |
34 | |
|
35 | |
private Class<? extends Document> documentClass; |
36 | |
|
37 | 0 | private boolean allowsNoteAttachments = true; |
38 | 0 | private boolean allowsNoteFYI = false; |
39 | 0 | private boolean displayTopicFieldInNotes = false; |
40 | |
|
41 | |
|
42 | |
protected Class<? extends DerivedValuesSetter> derivedValuesSetterClass; |
43 | |
private Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass; |
44 | |
|
45 | |
public DocumentView() { |
46 | 0 | super(); |
47 | 0 | } |
48 | |
|
49 | |
public Class<? extends Document> getDocumentClass() { |
50 | 0 | return this.documentClass; |
51 | |
} |
52 | |
|
53 | |
public void setDocumentClass(Class<? extends Document> documentClass) { |
54 | 0 | this.documentClass = documentClass; |
55 | 0 | } |
56 | |
|
57 | |
public boolean isAllowsNoteAttachments() { |
58 | 0 | return this.allowsNoteAttachments; |
59 | |
} |
60 | |
|
61 | |
public void setAllowsNoteAttachments(boolean allowsNoteAttachments) { |
62 | 0 | this.allowsNoteAttachments = allowsNoteAttachments; |
63 | 0 | } |
64 | |
|
65 | |
public boolean isAllowsNoteFYI() { |
66 | 0 | return this.allowsNoteFYI; |
67 | |
} |
68 | |
|
69 | |
public void setAllowsNoteFYI(boolean allowsNoteFYI) { |
70 | 0 | this.allowsNoteFYI = allowsNoteFYI; |
71 | 0 | } |
72 | |
|
73 | |
public boolean isDisplayTopicFieldInNotes() { |
74 | 0 | return this.displayTopicFieldInNotes; |
75 | |
} |
76 | |
|
77 | |
public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) { |
78 | 0 | this.displayTopicFieldInNotes = displayTopicFieldInNotes; |
79 | 0 | } |
80 | |
|
81 | |
public Class<? extends KeyValuesFinder> getAttachmentTypesValuesFinderClass() { |
82 | 0 | return this.attachmentTypesValuesFinderClass; |
83 | |
} |
84 | |
|
85 | |
public void setAttachmentTypesValuesFinderClass(Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass) { |
86 | 0 | this.attachmentTypesValuesFinderClass = attachmentTypesValuesFinderClass; |
87 | 0 | } |
88 | |
|
89 | |
public Class<? extends DerivedValuesSetter> getDerivedValuesSetterClass() { |
90 | 0 | return this.derivedValuesSetterClass; |
91 | |
} |
92 | |
|
93 | |
public void setDerivedValuesSetterClass(Class<? extends DerivedValuesSetter> derivedValuesSetterClass) { |
94 | 0 | this.derivedValuesSetterClass = derivedValuesSetterClass; |
95 | 0 | } |
96 | |
|
97 | |
} |