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