@@ -17,19 +17,11 @@ inherit
17
17
feature {NONE } -- Initialization
18
18
19
19
create_interface_objects
20
- local
21
- ft : EV_FONT
22
20
do
23
21
Precursor
24
22
create field_url
25
- create ft
26
- ft .set_family ({EV_FONT_CONSTANTS }.Family_sans )
27
- ft .set_height (10 )
28
-
29
23
create text_formatted_body .make
30
-
31
24
create text_http_response
32
- text_http_response .set_font (ft )
33
25
34
26
create button_go .make_with_text (" Go" )
35
27
create cell_info
@@ -132,13 +124,13 @@ feature -- Explore
132
124
end
133
125
if attached resp .collection as coll then
134
126
t .enter_bold
135
- t .append_text (" Version: " )
127
+ t .append_text (" - Version: " )
136
128
t .exit_bold
137
129
t .append_text (coll .version )
138
130
t .append_new_line
139
131
140
132
t .enter_bold
141
- t .append_text (" Href: " )
133
+ t .append_text (" - Href: " )
142
134
t .exit_bold
143
135
144
136
if coll .href .is_empty then
@@ -168,42 +160,31 @@ feature -- Explore
168
160
l_items as c
169
161
loop
170
162
i := i + 1
171
- append_item_line_to (i , c .item , t )
172
- t .append_text (" %N" )
163
+ -- append_item_line_to (i, c.item, t)
164
+ append_item_to (i , c .item , t )
165
+ t .append_new_line
173
166
end
167
+ t .append_new_line
174
168
end
175
169
if attached coll .queries as l_queries then
176
170
t .append_custom (" title" , " Queries" )
177
171
t .append_new_line
178
172
i := 0
179
- across
180
- l_queries as c
181
- loop
182
- i := i + 1
183
- append_query_line_to (i , c .item , t )
184
- t .append_text (" %N" )
185
- end
186
-
187
- t .append_custom (" title" , " Queries (details)" )
188
- t .append_new_line
189
- i := 0
190
173
across
191
174
l_queries as c
192
175
loop
193
176
i := i + 1
194
177
append_query_to (i , c .item , t )
195
- t .append_text ( " %N " )
178
+ t .append_new_line
196
179
end
180
+ t .append_new_line
197
181
end
198
182
199
- if attached coll .template as tpl then
183
+ if attached coll .template as l_template then
200
184
t .append_custom (" title" , " Template" )
201
185
t .append_new_line
202
- across
203
- tpl .data as d
204
- loop
205
- append_data_line_to (d .item , t )
206
- end
186
+ append_template_to (0 , l_template , t )
187
+ t .append_new_line
207
188
end
208
189
209
190
if attached coll .error as l_error then
@@ -239,6 +220,8 @@ feature -- Explore
239
220
t .enter_italic
240
221
t .append_text (a_error .message )
241
222
t .exit_italic
223
+ t .append_new_line
224
+
242
225
end
243
226
244
227
append_link_line_to (a_index : INTEGER ; a_link : CJ_LINK ; t : CLICKABLE_TEXT )
@@ -257,7 +240,7 @@ feature -- Explore
257
240
t .append_text (" - Link #" + a_index .out )
258
241
t .exit_bold
259
242
t .append_text (" " )
260
- t .append_link (l_title + {STRING_ 32 } " (" + a_link .href + {STRING_ 32 } " )" , a_link .href )
243
+ t .append_link (l_title + {STRING_ 32 } " ( " + a_link .href + {STRING_ 32 } " )" , a_link .href )
261
244
end
262
245
263
246
append_query_line_to (a_index : INTEGER ; a_query : CJ_QUERY ; t : CLICKABLE_TEXT )
@@ -276,7 +259,7 @@ feature -- Explore
276
259
t .append_text (" - Query #" + a_index .out )
277
260
t .exit_bold
278
261
t .append_text (" " )
279
- t .append_link (l_title + {STRING_ 32 } " (" + a_query .href + {STRING_ 32 } " )" , a_query .href )
262
+ t .append_link (l_title + {STRING_ 32 } " ( " + a_query .href + {STRING_ 32 } " )" , a_query .href )
280
263
end
281
264
282
265
append_query_to (a_index : INTEGER ; a_query : CJ_QUERY ; t : CLICKABLE_TEXT )
@@ -296,11 +279,46 @@ feature -- Explore
296
279
t .append_new_line
297
280
end
298
281
end
282
+ t .append_new_line
283
+ end
284
+
285
+ append_template_to (a_index : INTEGER ; a_template : CJ_TEMPLATE ; t : CLICKABLE_TEXT )
286
+ do
287
+ t .enter_bold
288
+ t .append_text (" - Template" )
289
+ if a_index > 0 then
290
+ t .append_text (" #" + a_index .out )
291
+ end
292
+ t .exit_bold
293
+ t .append_new_line
294
+
295
+ t .append_new_line
296
+ if attached a_template .data as l_data then
297
+ t .enter_bold
298
+ t .append_text (" %TData" )
299
+ t .exit_bold
300
+ t .append_new_line
301
+ across
302
+ l_data as d
303
+ loop
304
+ t .append_text (" %T - " )
305
+ append_data_line_to (d .item , t )
306
+ t .append_new_line
307
+ end
308
+ end
309
+ t .append_new_line
299
310
end
300
311
301
312
append_item_line_to (a_index : INTEGER ; a_item : CJ_ITEM ; t : CLICKABLE_TEXT )
302
313
do
303
314
t .append_link (" - Item #" + a_index .out + " " + a_item .href , a_item .href )
315
+ end
316
+
317
+ append_item_to (a_index : INTEGER ; a_item : CJ_ITEM ; t : CLICKABLE_TEXT )
318
+ local
319
+ i : INTEGER
320
+ do
321
+ append_item_line_to (a_index , a_item , t )
304
322
if attached a_item .data as l_data then
305
323
t .append_text (" %N%T" )
306
324
t .enter_bold
@@ -313,6 +331,21 @@ feature -- Explore
313
331
append_data_line_to (d .item , t )
314
332
end
315
333
end
334
+ if attached a_item .links as l_links then
335
+ t .append_text (" %N%T" )
336
+ t .enter_bold
337
+ t .append_text (" Links" )
338
+ t .exit_bold
339
+ i := 0
340
+ across
341
+ l_links as ln
342
+ loop
343
+ t .append_text (" %N%T%T" )
344
+ i := i + 1
345
+ append_link_line_to (i , ln .item , t )
346
+ end
347
+ end
348
+ t .append_new_line
316
349
end
317
350
318
351
append_data_line_to (a_data : CJ_DATA ; t : CLICKABLE_TEXT )
0 commit comments