Search in sources :

Example 1 with Format

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);
    }
}
Also used : RenderElement(org.activityinfo.legacy.shared.command.RenderElement) Format(org.activityinfo.legacy.shared.command.RenderElement.Format) MenuItem(com.extjs.gxt.ui.client.widget.menu.MenuItem)

Aggregations

MenuItem (com.extjs.gxt.ui.client.widget.menu.MenuItem)1 RenderElement (org.activityinfo.legacy.shared.command.RenderElement)1 Format (org.activityinfo.legacy.shared.command.RenderElement.Format)1