// 添加对表格中行进行增加及删除操作的DIV
// TODO 需要追加如果配置的删除追加就必须为可选择
if (g.addabled() || g.deletabled()) {
DivElementTag buttonDiv = new DivElementTag(g.id() + _TABLE_BUTTON_DIV_ID, _TABLE_BUTTON_DIV_CSS);
if (g.addabled()) {
InputElementTag buttonElement = new InputElementTag();
buttonElement.setId(_ADD_ITEM_ID);
buttonElement.setCssClass(_TABLE_BUTTON_CSS);
buttonElement.setType(ElementEnum.BUTTON.name());
buttonElement.setValue(Element.LabelContent.getLabelContent(_ADD_BUTTON_LABEL_ID));
buttonElement.setOnclick(_ADDED_TABLETR_FONT + g.id() + _ADDED_TABLETR_FOOT);
buttonDiv.addChildrenTag(buttonElement);
}
if (g.deletabled()) {
InputElementTag buttonElement = new InputElementTag();
buttonElement.setId(_DELETE_ITEM_ID);
buttonElement.setCssClass(_TABLE_BUTTON_CSS);
buttonElement.setType(ElementEnum.BUTTON.name());
buttonElement.setOnclick(_DELETE_TABLE_TR_FONT + g.id() + _DELETE_TABLE_TR_FOOT);
buttonElement.setValue(Element.LabelContent.getLabelContent(_DELETE_BUTTON_LABEL));
buttonDiv.addChildrenTag(buttonElement);
}
if (g.copyabled()) {
InputElementTag buttonElement = new InputElementTag();
buttonElement.setId(_COPY_ITEM_ID);
buttonElement.setCssClass(_TABLE_BUTTON_CSS);
buttonElement.setType(ElementEnum.BUTTON.name());
buttonElement.setValue(Element.LabelContent.getLabelContent(_COPY_BUTTON_LABEL));
buttonElement.setOnclick(_ADDED_TABLETR_FONT + g.id() + _COPY_TABLE_TR_FOOT);
buttonDiv.addChildrenTag(buttonElement);
}
tableDiv.addChildrenTag(buttonDiv);
}
int columnCount = parserTableThead(g, tableDiv);