use of org.activityinfo.client.page.entry.grouping.GroupingComboBox in project activityinfo by bedatadriven.
the class DataEntryPage method createToolBar.
private ActionToolBar createToolBar() {
toolBar = new ActionToolBar(this);
groupingComboBox = new GroupingComboBox(dispatcher);
groupingComboBox.withSelectionListener(new Listener<FieldEvent>() {
@Override
public void handleEvent(FieldEvent be) {
eventBus.fireEvent(new NavigationEvent(NavigationHandler.NAVIGATION_REQUESTED, currentPlace.copy().setGrouping(groupingComboBox.getGroupingModel())));
}
});
toolBar.add(new Label(I18N.CONSTANTS.grouping()));
toolBar.add(groupingComboBox);
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.newSite(), IconImageBundle.ICONS.add());
toolBar.addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), IconImageBundle.ICONS.edit());
toolBar.addDeleteButton(I18N.CONSTANTS.deleteSite());
toolBar.add(new SeparatorToolItem());
toolBar.addButton("IMPORT", "Import", IconImageBundle.ICONS.importIcon());
toolBar.addExcelExportButton();
toolBar.addPrintButton();
toolBar.addButton("EMBED", I18N.CONSTANTS.embed(), IconImageBundle.ICONS.embed());
return toolBar;
}
Aggregations