01: package com.teamkonzept.lib;
02:
03: import java.util.*;
04:
05: public class TKStringIteratorPlugin extends TKIteratorPlugin {
06:
07: private String itemName;
08:
09: public TKStringIteratorPlugin(String listName, String itemName,
10: Enumeration items, boolean doSort) {
11:
12: super (items, listName, doSort);
13:
14: this .itemName = itemName;
15: }
16:
17: public TKStringIteratorPlugin(String listName, String itemName,
18: TKVector items, boolean doSort, Object oneMore) {
19:
20: super (items, listName, doSort, oneMore);
21:
22: this .itemName = itemName;
23: }
24:
25: public TKStringIteratorPlugin(String listName, String itemName,
26: TKVector items, boolean doSort) {
27:
28: super (items, listName, doSort);
29:
30: this .itemName = itemName;
31: }
32:
33: public TKStringIteratorPlugin(String listName, String itemName,
34: Enumeration items, boolean doSort, Object oneMore) {
35:
36: super (items, listName, doSort, oneMore);
37:
38: this .itemName = itemName;
39: }
40:
41: public boolean applyThis(Object item, TKTemplate template,
42: String path) {
43:
44: template.set(itemName, (String) item);
45: return true;
46: }
47: }
|