|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.components; |
|
16 |
| |
|
17 |
| import java.util.ArrayList; |
|
18 |
| import java.util.Collections; |
|
19 |
| import java.util.HashMap; |
|
20 |
| import java.util.Iterator; |
|
21 |
| import java.util.List; |
|
22 |
| import java.util.Map; |
|
23 |
| |
|
24 |
| import org.apache.tapestry.IBinding; |
|
25 |
| import org.apache.tapestry.IForm; |
|
26 |
| import org.apache.tapestry.IMarkupWriter; |
|
27 |
| import org.apache.tapestry.IRequestCycle; |
|
28 |
| import org.apache.tapestry.Tapestry; |
|
29 |
| import org.apache.tapestry.TapestryUtils; |
|
30 |
| import org.apache.tapestry.coerce.ValueConverter; |
|
31 |
| import org.apache.tapestry.form.AbstractFormComponent; |
|
32 |
| import org.apache.tapestry.services.DataSqueezer; |
|
33 |
| import org.apache.tapestry.services.ExpressionEvaluator; |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| public abstract class ForBean extends AbstractFormComponent |
|
42 |
| { |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| private static final char DESC_VALUE = 'V'; |
|
51 |
| |
|
52 |
| |
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
| private static final char DESC_PRIMARY_KEY = 'P'; |
|
59 |
| |
|
60 |
| private final RepSource COMPLETE_REP_SOURCE = new CompleteRepSource(); |
|
61 |
| |
|
62 |
| private final RepSource KEY_EXPRESSION_REP_SOURCE = new KeyExpressionRepSource(); |
|
63 |
| |
|
64 |
| |
|
65 |
| public abstract String getElement(); |
|
66 |
| |
|
67 |
| public abstract String getKeyExpression(); |
|
68 |
| |
|
69 |
| public abstract IPrimaryKeyConverter getConverter(); |
|
70 |
| |
|
71 |
| public abstract Object getDefaultValue(); |
|
72 |
| |
|
73 |
| public abstract boolean getMatch(); |
|
74 |
| |
|
75 |
| public abstract boolean getVolatile(); |
|
76 |
| |
|
77 |
| |
|
78 |
| public abstract DataSqueezer getDataSqueezer(); |
|
79 |
| |
|
80 |
| public abstract ValueConverter getValueConverter(); |
|
81 |
| |
|
82 |
| public abstract ExpressionEvaluator getExpressionEvaluator(); |
|
83 |
| |
|
84 |
| |
|
85 |
| private Object _value; |
|
86 |
| |
|
87 |
| private int _index; |
|
88 |
| |
|
89 |
| private boolean _rendering; |
|
90 |
| |
|
91 |
| |
|
92 |
| |
|
93 |
| |
|
94 |
| |
|
95 |
63
| protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
|
|
96 |
| { |
|
97 |
| |
|
98 |
63
| IForm form = (IForm) cycle.getAttribute(TapestryUtils.FORM_ATTRIBUTE);
|
|
99 |
| |
|
100 |
| |
|
101 |
| |
|
102 |
63
| boolean cycleRewinding = cycle.isRewinding();
|
|
103 |
63
| if (cycleRewinding && form != null && !form.isRewinding())
|
|
104 |
0
| return;
|
|
105 |
| |
|
106 |
| |
|
107 |
63
| Iterator dataSource = getData(cycle, form);
|
|
108 |
| |
|
109 |
| |
|
110 |
| |
|
111 |
63
| if (dataSource == null)
|
|
112 |
0
| return;
|
|
113 |
| |
|
114 |
63
| String element = getElement();
|
|
115 |
| |
|
116 |
| |
|
117 |
63
| try
|
|
118 |
| { |
|
119 |
63
| _index = 0;
|
|
120 |
63
| _rendering = true;
|
|
121 |
| |
|
122 |
63
| while (dataSource.hasNext())
|
|
123 |
| { |
|
124 |
| |
|
125 |
171
| _value = dataSource.next();
|
|
126 |
| |
|
127 |
| |
|
128 |
171
| updateOutputParameters();
|
|
129 |
| |
|
130 |
| |
|
131 |
171
| if (element != null)
|
|
132 |
| { |
|
133 |
66
| writer.begin(element);
|
|
134 |
66
| renderInformalParameters(writer, cycle);
|
|
135 |
| } |
|
136 |
| |
|
137 |
171
| renderBody(writer, cycle);
|
|
138 |
| |
|
139 |
171
| if (element != null)
|
|
140 |
66
| writer.end();
|
|
141 |
| |
|
142 |
171
| _index++;
|
|
143 |
| } |
|
144 |
| } |
|
145 |
| finally |
|
146 |
| { |
|
147 |
63
| _rendering = false;
|
|
148 |
63
| _value = null;
|
|
149 |
| } |
|
150 |
| } |
|
151 |
| |
|
152 |
| |
|
153 |
| |
|
154 |
| |
|
155 |
| |
|
156 |
| |
|
157 |
| |
|
158 |
| |
|
159 |
138
| public final Object getValue()
|
|
160 |
| { |
|
161 |
138
| if (!_rendering)
|
|
162 |
0
| throw Tapestry.createRenderOnlyPropertyException(this, "value");
|
|
163 |
| |
|
164 |
138
| return _value;
|
|
165 |
| } |
|
166 |
| |
|
167 |
| |
|
168 |
| |
|
169 |
| |
|
170 |
| |
|
171 |
| |
|
172 |
| |
|
173 |
| |
|
174 |
138
| public int getIndex()
|
|
175 |
| { |
|
176 |
138
| if (!_rendering)
|
|
177 |
0
| throw Tapestry.createRenderOnlyPropertyException(this, "index");
|
|
178 |
| |
|
179 |
138
| return _index;
|
|
180 |
| } |
|
181 |
| |
|
182 |
0
| public boolean isDisabled()
|
|
183 |
| { |
|
184 |
0
| return false;
|
|
185 |
| } |
|
186 |
| |
|
187 |
| |
|
188 |
| |
|
189 |
| |
|
190 |
171
| protected void updateOutputParameters()
|
|
191 |
| { |
|
192 |
171
| IBinding indexBinding = getBinding("index");
|
|
193 |
171
| if (indexBinding != null)
|
|
194 |
93
| indexBinding.setObject(new Integer(_index));
|
|
195 |
| |
|
196 |
171
| IBinding valueBinding = getBinding("value");
|
|
197 |
171
| if (valueBinding != null)
|
|
198 |
93
| valueBinding.setObject(_value);
|
|
199 |
| } |
|
200 |
| |
|
201 |
| |
|
202 |
| |
|
203 |
| |
|
204 |
15
| protected void updatePrimaryKeysParameter(String[] stringReps)
|
|
205 |
| { |
|
206 |
15
| IBinding primaryKeysBinding = getBinding("primaryKeys");
|
|
207 |
15
| if (primaryKeysBinding == null)
|
|
208 |
15
| return;
|
|
209 |
| |
|
210 |
0
| DataSqueezer squeezer = getDataSqueezer();
|
|
211 |
| |
|
212 |
0
| int repsCount = stringReps.length;
|
|
213 |
0
| List primaryKeys = new ArrayList(repsCount);
|
|
214 |
0
| for (int i = 0; i < stringReps.length; i++)
|
|
215 |
| { |
|
216 |
0
| String rep = stringReps[i];
|
|
217 |
0
| if (rep.length() == 0 || rep.charAt(0) != DESC_PRIMARY_KEY)
|
|
218 |
0
| continue;
|
|
219 |
0
| Object primaryKey = squeezer.unsqueeze(rep.substring(1));
|
|
220 |
0
| primaryKeys.add(primaryKey);
|
|
221 |
| } |
|
222 |
| |
|
223 |
0
| primaryKeysBinding.setObject(primaryKeys);
|
|
224 |
| } |
|
225 |
| |
|
226 |
| |
|
227 |
0
| protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
|
|
228 |
| { |
|
229 |
| } |
|
230 |
| |
|
231 |
0
| protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
|
|
232 |
| { |
|
233 |
| } |
|
234 |
| |
|
235 |
| |
|
236 |
| |
|
237 |
| |
|
238 |
| |
|
239 |
| |
|
240 |
| |
|
241 |
| |
|
242 |
| |
|
243 |
| |
|
244 |
| |
|
245 |
| |
|
246 |
| |
|
247 |
| |
|
248 |
| |
|
249 |
63
| private Iterator getData(IRequestCycle cycle, IForm form)
|
|
250 |
| { |
|
251 |
63
| if (form == null || getVolatile())
|
|
252 |
18
| return evaluateSourceIterator();
|
|
253 |
| |
|
254 |
45
| String name = form.getElementId(this);
|
|
255 |
45
| if (cycle.isRewinding())
|
|
256 |
15
| return getStoredData(cycle, name);
|
|
257 |
30
| return storeSourceData(form, name);
|
|
258 |
| } |
|
259 |
| |
|
260 |
| |
|
261 |
| |
|
262 |
| |
|
263 |
| |
|
264 |
| |
|
265 |
| |
|
266 |
| |
|
267 |
| |
|
268 |
| |
|
269 |
| |
|
270 |
15
| protected Iterator getStoredData(IRequestCycle cycle, String name)
|
|
271 |
| { |
|
272 |
15
| String[] stringReps = cycle.getParameters(name);
|
|
273 |
15
| if (stringReps == null)
|
|
274 |
0
| return null;
|
|
275 |
| |
|
276 |
15
| updatePrimaryKeysParameter(stringReps);
|
|
277 |
| |
|
278 |
15
| return new ReadSourceDataIterator(stringReps);
|
|
279 |
| } |
|
280 |
| |
|
281 |
| |
|
282 |
| |
|
283 |
| |
|
284 |
| |
|
285 |
| private class ReadSourceDataIterator implements Iterator |
|
286 |
| { |
|
287 |
| private final Iterator _sourceIterator = evaluateSourceIterator(); |
|
288 |
| |
|
289 |
| private final Iterator _fullSourceIterator = evaluateFullSourceIterator(); |
|
290 |
| |
|
291 |
| private final String[] _stringReps; |
|
292 |
| |
|
293 |
| private int _index = 0; |
|
294 |
| |
|
295 |
| private final Map _repToValueMap = new HashMap(); |
|
296 |
| |
|
297 |
15
| ReadSourceDataIterator(String[] stringReps)
|
|
298 |
| { |
|
299 |
15
| _stringReps = stringReps;
|
|
300 |
| } |
|
301 |
| |
|
302 |
48
| public boolean hasNext()
|
|
303 |
| { |
|
304 |
48
| return _index < _stringReps.length;
|
|
305 |
| } |
|
306 |
| |
|
307 |
33
| public Object next()
|
|
308 |
| { |
|
309 |
33
| String rep = _stringReps[_index++];
|
|
310 |
| |
|
311 |
33
| return getValueFromStringRep(_sourceIterator, _fullSourceIterator, _repToValueMap, rep);
|
|
312 |
| } |
|
313 |
| |
|
314 |
0
| public void remove()
|
|
315 |
| { |
|
316 |
0
| throw new UnsupportedOperationException("remove()");
|
|
317 |
| } |
|
318 |
| |
|
319 |
| } |
|
320 |
| |
|
321 |
| |
|
322 |
| |
|
323 |
| |
|
324 |
| |
|
325 |
| |
|
326 |
| |
|
327 |
| |
|
328 |
| |
|
329 |
| |
|
330 |
| |
|
331 |
30
| protected Iterator storeSourceData(IForm form, String name)
|
|
332 |
| { |
|
333 |
30
| return new StoreSourceDataIterator(form, name, evaluateSourceIterator());
|
|
334 |
| } |
|
335 |
| |
|
336 |
| |
|
337 |
| |
|
338 |
| |
|
339 |
| |
|
340 |
| |
|
341 |
| private class StoreSourceDataIterator implements Iterator |
|
342 |
| { |
|
343 |
| private final IForm _form; |
|
344 |
| |
|
345 |
| private final String _name; |
|
346 |
| |
|
347 |
| private final Iterator _delegate; |
|
348 |
| |
|
349 |
30
| StoreSourceDataIterator(IForm form, String name, Iterator delegate)
|
|
350 |
| { |
|
351 |
30
| _form = form;
|
|
352 |
30
| _name = name;
|
|
353 |
30
| _delegate = delegate;
|
|
354 |
| } |
|
355 |
| |
|
356 |
90
| public boolean hasNext()
|
|
357 |
| { |
|
358 |
90
| return _delegate.hasNext();
|
|
359 |
| } |
|
360 |
| |
|
361 |
60
| public Object next()
|
|
362 |
| { |
|
363 |
60
| Object value = _delegate.next();
|
|
364 |
| |
|
365 |
60
| String rep = getStringRepFromValue(value);
|
|
366 |
| |
|
367 |
60
| _form.addHiddenValue(_name, rep);
|
|
368 |
| |
|
369 |
60
| return value;
|
|
370 |
| } |
|
371 |
| |
|
372 |
0
| public void remove()
|
|
373 |
| { |
|
374 |
0
| throw new UnsupportedOperationException("remove()");
|
|
375 |
| } |
|
376 |
| } |
|
377 |
| |
|
378 |
| |
|
379 |
| |
|
380 |
| |
|
381 |
| |
|
382 |
| |
|
383 |
| |
|
384 |
| |
|
385 |
213
| protected String getStringRepFromValue(Object value)
|
|
386 |
| { |
|
387 |
213
| String rep;
|
|
388 |
213
| DataSqueezer squeezer = getDataSqueezer();
|
|
389 |
| |
|
390 |
| |
|
391 |
213
| Object pk = getPrimaryKeyFromValue(value);
|
|
392 |
213
| if (pk != null)
|
|
393 |
| |
|
394 |
150
| rep = DESC_PRIMARY_KEY + squeezer.squeeze(pk);
|
|
395 |
| else |
|
396 |
| |
|
397 |
63
| rep = DESC_VALUE + squeezer.squeeze(value);
|
|
398 |
| |
|
399 |
213
| return rep;
|
|
400 |
| } |
|
401 |
| |
|
402 |
| |
|
403 |
| |
|
404 |
| |
|
405 |
| |
|
406 |
| |
|
407 |
| |
|
408 |
| |
|
409 |
| |
|
410 |
213
| protected Object getPrimaryKeyFromValue(Object value)
|
|
411 |
| { |
|
412 |
213
| if (value == null)
|
|
413 |
0
| return null;
|
|
414 |
| |
|
415 |
213
| Object primaryKey = getKeyExpressionFromValue(value);
|
|
416 |
213
| if (primaryKey == null)
|
|
417 |
63
| primaryKey = getConverterFromValue(value);
|
|
418 |
| |
|
419 |
213
| return primaryKey;
|
|
420 |
| } |
|
421 |
| |
|
422 |
| |
|
423 |
| |
|
424 |
| |
|
425 |
| |
|
426 |
| |
|
427 |
| |
|
428 |
| |
|
429 |
| |
|
430 |
213
| protected Object getKeyExpressionFromValue(Object value)
|
|
431 |
| { |
|
432 |
213
| String keyExpression = getKeyExpression();
|
|
433 |
213
| if (keyExpression == null)
|
|
434 |
63
| return null;
|
|
435 |
| |
|
436 |
150
| Object primaryKey = getExpressionEvaluator().read(value, keyExpression);
|
|
437 |
150
| return primaryKey;
|
|
438 |
| } |
|
439 |
| |
|
440 |
| |
|
441 |
| |
|
442 |
| |
|
443 |
| |
|
444 |
| |
|
445 |
| |
|
446 |
| |
|
447 |
| |
|
448 |
63
| protected Object getConverterFromValue(Object value)
|
|
449 |
| { |
|
450 |
63
| IPrimaryKeyConverter converter = getConverter();
|
|
451 |
63
| if (converter == null)
|
|
452 |
63
| return null;
|
|
453 |
| |
|
454 |
0
| Object primaryKey = converter.getPrimaryKey(value);
|
|
455 |
0
| return primaryKey;
|
|
456 |
| } |
|
457 |
| |
|
458 |
| |
|
459 |
| |
|
460 |
| |
|
461 |
| |
|
462 |
| |
|
463 |
| |
|
464 |
| |
|
465 |
| |
|
466 |
| |
|
467 |
33
| protected Object getValueFromStringRep(Iterator sourceIterator, Iterator fullSourceIterator,
|
|
468 |
| Map repToValueMap, String rep) |
|
469 |
| { |
|
470 |
33
| Object value = null;
|
|
471 |
33
| DataSqueezer squeezer = getDataSqueezer();
|
|
472 |
| |
|
473 |
| |
|
474 |
33
| if (rep == null || rep.length() == 0)
|
|
475 |
0
| return getDefaultValue();
|
|
476 |
| |
|
477 |
| |
|
478 |
33
| boolean match = getMatch();
|
|
479 |
33
| if (match)
|
|
480 |
| { |
|
481 |
27
| value = findValueWithStringRep(
|
|
482 |
| sourceIterator, |
|
483 |
| fullSourceIterator, |
|
484 |
| repToValueMap, |
|
485 |
| rep, |
|
486 |
| COMPLETE_REP_SOURCE); |
|
487 |
27
| if (value != null)
|
|
488 |
21
| return value;
|
|
489 |
| } |
|
490 |
| |
|
491 |
| |
|
492 |
| |
|
493 |
12
| char desc = rep.charAt(0);
|
|
494 |
12
| String squeezed = rep.substring(1);
|
|
495 |
12
| switch (desc)
|
|
496 |
| { |
|
497 |
9
| case DESC_VALUE:
|
|
498 |
| |
|
499 |
9
| value = squeezer.unsqueeze(squeezed);
|
|
500 |
9
| break;
|
|
501 |
| |
|
502 |
3
| case DESC_PRIMARY_KEY:
|
|
503 |
| |
|
504 |
3
| if (!match && getKeyExpression() != null)
|
|
505 |
0
| value = findValueWithStringRep(
|
|
506 |
| sourceIterator, |
|
507 |
| fullSourceIterator, |
|
508 |
| repToValueMap, |
|
509 |
| rep, |
|
510 |
| KEY_EXPRESSION_REP_SOURCE); |
|
511 |
| |
|
512 |
| |
|
513 |
3
| if (value == null)
|
|
514 |
| { |
|
515 |
3
| IPrimaryKeyConverter converter = getConverter();
|
|
516 |
3
| if (converter != null)
|
|
517 |
| { |
|
518 |
0
| Object pk = squeezer.unsqueeze(squeezed);
|
|
519 |
0
| value = converter.getValue(pk);
|
|
520 |
| } |
|
521 |
| } |
|
522 |
3
| break;
|
|
523 |
| } |
|
524 |
| |
|
525 |
12
| if (value == null)
|
|
526 |
3
| value = getDefaultValue();
|
|
527 |
| |
|
528 |
12
| return value;
|
|
529 |
| } |
|
530 |
| |
|
531 |
| |
|
532 |
| |
|
533 |
| |
|
534 |
| |
|
535 |
| |
|
536 |
| |
|
537 |
| |
|
538 |
| |
|
539 |
| |
|
540 |
| |
|
541 |
| |
|
542 |
| |
|
543 |
27
| protected Object findValueWithStringRep(Iterator sourceIterator, Iterator fullSourceIterator,
|
|
544 |
| Map repToValueMap, String rep, RepSource repSource) |
|
545 |
| { |
|
546 |
27
| Object value = repToValueMap.get(rep);
|
|
547 |
27
| if (value != null)
|
|
548 |
3
| return value;
|
|
549 |
| |
|
550 |
24
| value = findValueWithStringRepInIterator(sourceIterator, repToValueMap, rep, repSource);
|
|
551 |
24
| if (value != null)
|
|
552 |
12
| return value;
|
|
553 |
| |
|
554 |
12
| value = findValueWithStringRepInIterator(fullSourceIterator, repToValueMap, rep, repSource);
|
|
555 |
12
| return value;
|
|
556 |
| } |
|
557 |
| |
|
558 |
| |
|
559 |
| |
|
560 |
| |
|
561 |
| |
|
562 |
| |
|
563 |
| |
|
564 |
| |
|
565 |
| |
|
566 |
| |
|
567 |
| |
|
568 |
| |
|
569 |
| |
|
570 |
| |
|
571 |
| |
|
572 |
36
| protected Object findValueWithStringRepInIterator(Iterator it, Map repToValueMap, String rep,
|
|
573 |
| RepSource repSource) |
|
574 |
| { |
|
575 |
36
| while (it.hasNext())
|
|
576 |
| { |
|
577 |
153
| Object sourceValue = it.next();
|
|
578 |
153
| if (sourceValue == null)
|
|
579 |
0
| continue;
|
|
580 |
| |
|
581 |
153
| String sourceRep = repSource.getStringRep(sourceValue);
|
|
582 |
153
| repToValueMap.put(sourceRep, sourceValue);
|
|
583 |
| |
|
584 |
153
| if (rep.equals(sourceRep))
|
|
585 |
18
| return sourceValue;
|
|
586 |
| } |
|
587 |
| |
|
588 |
18
| return null;
|
|
589 |
| } |
|
590 |
| |
|
591 |
| |
|
592 |
| |
|
593 |
| |
|
594 |
| |
|
595 |
| |
|
596 |
63
| protected Iterator evaluateSourceIterator()
|
|
597 |
| { |
|
598 |
63
| Iterator it = null;
|
|
599 |
63
| Object source = null;
|
|
600 |
| |
|
601 |
63
| IBinding sourceBinding = getBinding("source");
|
|
602 |
63
| if (sourceBinding != null)
|
|
603 |
63
| source = sourceBinding.getObject();
|
|
604 |
| |
|
605 |
63
| if (source != null)
|
|
606 |
63
| it = (Iterator) getValueConverter().coerceValue(source, Iterator.class);
|
|
607 |
| |
|
608 |
63
| if (it == null)
|
|
609 |
0
| it = Collections.EMPTY_LIST.iterator();
|
|
610 |
| |
|
611 |
63
| return it;
|
|
612 |
| } |
|
613 |
| |
|
614 |
| |
|
615 |
| |
|
616 |
| |
|
617 |
| |
|
618 |
| |
|
619 |
15
| protected Iterator evaluateFullSourceIterator()
|
|
620 |
| { |
|
621 |
15
| Iterator it = null;
|
|
622 |
15
| Object fullSource = null;
|
|
623 |
| |
|
624 |
15
| IBinding fullSourceBinding = getBinding("fullSource");
|
|
625 |
15
| if (fullSourceBinding != null)
|
|
626 |
6
| fullSource = fullSourceBinding.getObject();
|
|
627 |
| |
|
628 |
15
| if (fullSource != null)
|
|
629 |
6
| it = (Iterator) getValueConverter().coerceValue(fullSource, Iterator.class);
|
|
630 |
| |
|
631 |
15
| if (it == null)
|
|
632 |
9
| it = Collections.EMPTY_LIST.iterator();
|
|
633 |
| |
|
634 |
15
| return it;
|
|
635 |
| } |
|
636 |
| |
|
637 |
| |
|
638 |
| |
|
639 |
| |
|
640 |
| protected interface RepSource |
|
641 |
| { |
|
642 |
| String getStringRep(Object value); |
|
643 |
| } |
|
644 |
| |
|
645 |
| |
|
646 |
| |
|
647 |
| |
|
648 |
| |
|
649 |
| protected class CompleteRepSource implements RepSource |
|
650 |
| { |
|
651 |
153
| public String getStringRep(Object value)
|
|
652 |
| { |
|
653 |
153
| return getStringRepFromValue(value);
|
|
654 |
| } |
|
655 |
| } |
|
656 |
| |
|
657 |
| |
|
658 |
| |
|
659 |
| |
|
660 |
| |
|
661 |
| protected class KeyExpressionRepSource implements RepSource |
|
662 |
| { |
|
663 |
0
| public String getStringRep(Object value)
|
|
664 |
| { |
|
665 |
0
| Object pk = getKeyExpressionFromValue(value);
|
|
666 |
0
| return DESC_PRIMARY_KEY + getDataSqueezer().squeeze(pk);
|
|
667 |
| } |
|
668 |
| } |
|
669 |
| |
|
670 |
| |
|
671 |
| |
|
672 |
| |
|
673 |
0
| protected boolean getCanTakeFocus()
|
|
674 |
| { |
|
675 |
0
| return false;
|
|
676 |
| } |
|
677 |
| |
|
678 |
0
| public String getClientId()
|
|
679 |
| { |
|
680 |
0
| return null;
|
|
681 |
| } |
|
682 |
| |
|
683 |
0
| public String getDisplayName()
|
|
684 |
| { |
|
685 |
0
| return null;
|
|
686 |
| } |
|
687 |
| |
|
688 |
| } |