Package cn.com.elements.component

Examples of cn.com.elements.component.ContextComponent


    protected void parser(String templateStyle, ContainHTMLElementTag parentElement) throws AppException {
        Group group = parser.getGroup();
        if (group != null) {
            DivElementTag contentDiv = new DivElementTag(group.name(), templateStyle);

            ContextComponent context = new ContextComponent(contentDiv, parser, permission, new TabIndex());

            if (parser.getCurrentComponents() == null) {
                //条件标签
                context.addComponent(getGroupTemplateType().getComponent(_CONDITION));
                // 表格标签
                context.addComponent(getGroupTemplateType().getComponent(_TABLE));
                // 事件标注
                context.addComponent(getGroupTemplateType().getComponent(_ACTION));
            } else {
                for (String component : parser.getCurrentComponents()) {
                    //
                    context.addComponent(getGroupTemplateType().getComponent(component));
                }
            }

            context.processComponents();
            parentElement.addChildrenTag(contentDiv);
        }
    }
View Full Code Here

TOP

Related Classes of cn.com.elements.component.ContextComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.