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 fr.paris.lutece.plugins.document.business.attributes;
35
36 import fr.paris.lutece.util.ReferenceItem;
37
38
39
40
41
42
43 public class MapProvider implements IMapProvider
44 {
45 private String _strKey;
46 private String _strDisplayedName;
47 private String _strHtmlCode;
48 private String _strFrontHtmlCode;
49 private String _strFrontListHtmlCode;
50 private String _strBackListHtmlCode;
51 private boolean _bMapListSupported;
52
53
54
55
56 @Override
57 public String getKey( )
58 {
59 return _strKey;
60 }
61
62
63
64
65
66
67
68 public void setKey( String key )
69 {
70 this._strKey = key;
71 }
72
73
74
75
76 @Override
77 public String getDisplayedName( )
78 {
79 return _strDisplayedName;
80 }
81
82
83
84
85
86
87
88 public void setDisplayedName( String displayedName )
89 {
90 this._strDisplayedName = displayedName;
91 }
92
93
94
95
96 @Override
97 public String getHtmlCode( )
98 {
99 return _strHtmlCode;
100 }
101
102
103
104
105
106
107
108 public void setHtmlCode( String htmlCode )
109 {
110 this._strHtmlCode = htmlCode;
111 }
112
113
114
115
116 @Override
117 public ReferenceItem toRefItem( )
118 {
119 ReferenceItem refItem = new ReferenceItem( );
120
121 refItem.setCode( getKey( ) );
122 refItem.setName( getDisplayedName( ) );
123
124 return refItem;
125 }
126
127
128
129
130 @Override
131 public String getFrontHtmlCode( )
132 {
133 return _strFrontHtmlCode;
134 }
135
136
137
138
139 @Override
140 public String getFrontListHtmlCode( )
141 {
142 return _strFrontListHtmlCode;
143 }
144
145
146
147
148
149
150
151 public void setFrontListHtmlCode( String strFrontListHtmlCode )
152 {
153 _strFrontListHtmlCode = strFrontListHtmlCode;
154 }
155
156
157
158
159
160
161
162 public void setFrontHtmlCode( String strFrontHtmlCode )
163 {
164 _strFrontHtmlCode = strFrontHtmlCode;
165 }
166
167
168
169
170
171
172
173 public void setBackListHtmlCode( String strBackListHtmlCode )
174 {
175 _strBackListHtmlCode = strBackListHtmlCode;
176 }
177
178
179
180
181 @Override
182 public String getBackListHtmlCode( )
183 {
184 return _strBackListHtmlCode;
185 }
186
187
188
189
190 @Override
191 public boolean isMapListSupported( )
192 {
193 return _bMapListSupported;
194 }
195
196
197
198
199
200
201
202 public void setMapListSupported( boolean bMapListSupported )
203 {
204 _bMapListSupported = bMapListSupported;
205 }
206
207 @Override
208 public Object getParameter( int nKey )
209 {
210
211 return null;
212 }
213 }