use of org.activityinfo.legacy.shared.command.RenderElement.Format in project activityinfo by bedatadriven.
the class ExportMenuButton method setFormats.
public void setFormats(List<RenderElement.Format> formats) {
this.formats = formats;
setIcon(formatIcon(formats.get(0)));
menu.removeAll();
for (RenderElement.Format format : formats) {
MenuItem word = new MenuItem(formatLabel(format), formatIcon(format), menuListener);
word.setData("format", format);
menu.add(word);
}
}
Aggregations