use of com.axelor.meta.schema.views.PanelTabs in project axelor-open-suite by axelor.
the class ReportBuilderService method processView.
/**
* Method parse given xml to create html.
*
* @param xml View xml passed.
* @throws JAXBException Xml parsing exception.
*/
private void processView(String xml) throws JAXBException {
ObjectViews objectViews = XMLViews.fromXML(xml);
AbstractView view = objectViews.getViews().get(0);
FormView formView = (FormView) view;
for (AbstractWidget widget : formView.getItems()) {
if (widget instanceof PanelTabs) {
PanelTabs panelTabs = (PanelTabs) widget;
AbstractWidget tabItem = panelTabs.getItems().get(0);
processAbstractWidget(tabItem, false);
continue;
}
processAbstractWidget(widget, false);
}
}
Aggregations