/** * If no name set yet just set one. */ @Override public void addChild(Control control) { control.setParent(this); if (StringUtils.isEmpty(control.getName())) { control.setName(this.getName() + "_" + this.children.size()); } this.children.put(control.getName(), control); }