01: package fr.aliacom.form.common;
02:
03: public class FormComponentLoader implements ILoader {
04:
05: private IFormComponent formComponent;
06:
07: public FormComponentLoader(IFormComponent formComponent) {
08: this .formComponent = formComponent;
09: }
10:
11: public void load(Object value) {
12: if (value == null) {
13: System.out.println("reset compo");
14: formComponent.reset();
15: } else {
16: formComponent.setValueBean(value);
17: }
18: }
19: }
|