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
46
47
48 public class MainAreaIntro extends ConfiguredAreaDefinition{
49 private String dialog;
50
51
52
53
54 private String divID;
55
56 private Boolean showTOC;
57 private Boolean showAuthorDate;
58 private Boolean showAbstract;
59 private Boolean showTextFeatures;
60 private Boolean showCategories;
61 private Boolean showImage;
62
63 private AreaDefinition infoBlock;
64
65
66
67
68 public MainAreaIntro() {
69 }
70
71 @Inject
72 public MainAreaIntro(TemplateAvailability templateAvailability) {
73 super(templateAvailability);
74 }
75
76 public Boolean getShowTOC() {
77 return showTOC;
78 }
79 public void setShowTOC(Boolean showTOC) {
80 this.showTOC = showTOC;
81 }
82 public Boolean getShowAuthorDate() {
83 return showAuthorDate;
84 }
85 public void setShowAuthorDate(Boolean showAuthorDate) {
86 this.showAuthorDate = showAuthorDate;
87 }
88 public Boolean getShowAbstract() {
89 return showAbstract;
90 }
91 public void setShowAbstract(Boolean showAbstract) {
92 this.showAbstract = showAbstract;
93 }
94 public Boolean getShowTextFeatures() {
95 return showTextFeatures;
96 }
97 public void setShowTextFeatures(Boolean showTextFeatures) {
98 this.showTextFeatures = showTextFeatures;
99 }
100 public Boolean getShowCategories() {
101 return showCategories;
102 }
103 public void setShowCategories(Boolean showCategories) {
104 this.showCategories = showCategories;
105 }
106
107 @Override
108 public String getDialog() {
109 return this.dialog;
110 }
111
112 @Override
113 public void setDialog(String dialog) {
114 this.dialog = dialog;
115 }
116
117 public AreaDefinition getInfoBlock() {
118 return this.getAreas().get("infoBlock");
119 }
120
121
122
123
124 public void setInfoBlock(AreaDefinition infoBlock) {
125 this.getAreas().put("infoBlock", 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 public void setShowImage(Boolean showImage) {
140 this.showImage = showImage;
141 }
142
143 }