AutoFormBuilder.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:bdf2 作者:
public void build(Object control, ViewComponent parentViewComponent) {
    AutoForm autoForm = (AutoForm) control;
    String id = autoForm.getId();
    ViewComponent component = generateViewComponent(id,AutoForm.class);
    if (StringUtils.isEmpty(id)) {
        component.setEnabled(false);
    }
    parentViewComponent.addChildren(component);
    for (com.bstek.dorado.view.widget.Component c : autoForm.getElements()) {
        for (IControlBuilder builder : builders) {
            if (builder.support(c)) {
                builder.build(c, component);
                break;
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号