1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.module.templatingkit.templates;
35
36 import info.magnolia.rendering.template.AreaDefinition;
37 import info.magnolia.rendering.template.TemplateAvailability;
38 import info.magnolia.rendering.template.configured.ConfiguredAreaDefinition;
39
40 import com.google.inject.Inject;
41
42
43
44
45 public class MainAreaIntro extends ConfiguredAreaDefinition {
46 private String dialog;
47
48
49
50
51 private String divID;
52
53 private Boolean showTOC;
54 private Boolean showAuthorDate;
55 private Boolean showAbstract;
56 private Boolean showTextFeatures;
57 private Boolean showCategories;
58 private Boolean showImage;
59
60 private AreaDefinition infoBlock;
61
62 @Inject
63 public MainAreaIntro(TemplateAvailability templateAvailability) {
64 super(templateAvailability);
65 }
66
67
68
69
70 public MainAreaIntro() {
71
72 }
73
74 public Boolean getShowTOC() {
75 return showTOC;
76 }
77
78 public void setShowTOC(Boolean showTOC) {
79 this.showTOC = showTOC;
80 }
81
82 public Boolean getShowAuthorDate() {
83 return showAuthorDate;
84 }
85
86 public void setShowAuthorDate(Boolean showAuthorDate) {
87 this.showAuthorDate = showAuthorDate;
88 }
89
90 public Boolean getShowAbstract() {
91 return showAbstract;
92 }
93
94 public void setShowAbstract(Boolean showAbstract) {
95 this.showAbstract = showAbstract;
96 }
97
98 public Boolean getShowTextFeatures() {
99 return showTextFeatures;
100 }
101
102 public void setShowTextFeatures(Boolean showTextFeatures) {
103 this.showTextFeatures = showTextFeatures;
104 }
105
106 public Boolean getShowCategories() {
107 return showCategories;
108 }
109
110 public void setShowCategories(Boolean showCategories) {
111 this.showCategories = showCategories;
112 }
113
114 @Override
115 public String getDialog() {
116 return this.dialog;
117 }
118
119 @Override
120 public void setDialog(String dialog) {
121 this.dialog = dialog;
122 }
123
124 public AreaDefinition getInfoBlock() {
125 return this.getAreas().get("infoBlock");
126 }
127
128 public String getDivID() {
129 return this.divID;
130 }
131
132 public void setDivID(String divID) {
133 this.divID = divID;
134 }
135
136 public Boolean getShowImage() {
137 return showImage;
138 }
139
140 public void setShowImage(Boolean showImage) {
141 this.showImage = showImage;
142 }
143
144 }