ContainerBuilder.java 文件源码

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

项目:bdf2 作者:
public void build(Object control, ViewComponent parentViewComponent) {
    Container container=(Container)control;
    String id=container.getId();
    ViewComponent component=new ViewComponent();
    component.setId(id);
    component.setIcon(">dorado/res/"+container.getClass().getName().replaceAll("\\.", "/")+".png");
    component.setName(container.getClass().getSimpleName());
    if(StringUtils.isEmpty(id)){
        component.setEnabled(false);
    }
    parentViewComponent.addChildren(component);
    for(com.bstek.dorado.view.widget.Component c:container.getChildren()){
        for(IControlBuilder builder:builders){
            if(builder.support(c)){
                builder.build(c, component);
                break;
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号