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);
}
}