01: package nl.hippo.cms.wizard.widgets;
02:
03: import java.util.Iterator;
04:
05: public class SelectWidget extends AbstractContainerWidget implements
06: Unionable {
07: public static final String TYPE = "select";
08:
09: //TODO: make sure only child widgets are traversed with hasUnions()
10: public boolean hasUnions() {
11: boolean result = false;
12: for (Iterator iter = components.values().iterator(); iter
13: .hasNext();) {
14: Unionable widget = (Unionable) iter.next();
15: if (widget.hasUnions()) {
16: result = true;
17: break;
18: }
19: }
20: return result;
21: }
22:
23: //@Override
24: public String getURIValue() {
25: //for now, select cannot have a value
26: return "";
27: }
28:
29: public String getType() {
30: return TYPE;
31: }
32:
33: }
|