tableStyles.add(new RteStyle(styleParameters));
}
WidgetCollectionParameters wcp = new WidgetCollectionParameters();
wcp.setContainedElements(tableStyles);
wcp.setFieldName("tableStyles");
containedStyles.add(new WidgetCollection(wcp));
}
if (tableAnnotation.cellStyles().length > 0) {
cellStyles = new ArrayList<DialogElement>();
for (int i = 0; i < tableAnnotation.cellStyles().length; i++) {
Style curCellStyle = tableAnnotation.cellStyles()[i];
String curFieldName = "cellstyle" + i;
RteStyleParameters styleParameters = new RteStyleParameters();
styleParameters.setFieldName(curFieldName);
styleParameters.setCssName(curCellStyle.cssName());
styleParameters.setText(curCellStyle.text());
cellStyles.add(new RteStyle(styleParameters));
}
WidgetCollectionParameters wcp = new WidgetCollectionParameters();
wcp.setContainedElements(cellStyles);
wcp.setFieldName("cellStyles");
containedStyles.add(new WidgetCollection(wcp));
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("table");
widgetParameters.setFeatures(convertFeatures(features));
if (containedStyles.size() > 0) {