01: /*
02: * Created on 30 Nov 2006
03: */
04: package uk.org.ponder.rsf.evolvers.support;
05:
06: import uk.org.ponder.rsf.components.UIJointContainer;
07: import uk.org.ponder.rsf.components.UISelect;
08: import uk.org.ponder.rsf.evolvers.SelectEvolver;
09:
10: public class PlainSelectEvolver implements SelectEvolver {
11: public static final String COMPONENT_ID = "plainSelect:";
12:
13: public UIJointContainer evolveSelect(UISelect toevolve) {
14: UIJointContainer joint = new UIJointContainer(toevolve.parent,
15: toevolve.ID, COMPONENT_ID);
16: toevolve.parent.remove(toevolve);
17: toevolve.ID = "select";
18: joint.addComponent(toevolve);
19: return joint;
20: }
21: }
|