Search in sources :

Example 1 with GroupingComboBox

use of org.activityinfo.ui.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(event -> 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.add(new SeparatorToolItem());
    toolBar.addImportButton();
    toolBar.addExcelExportButton();
    toolBar.addPrintButton();
    return toolBar;
}
Also used : SeparatorToolItem(com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem) ActionToolBar(org.activityinfo.ui.client.page.common.toolbar.ActionToolBar) GroupingComboBox(org.activityinfo.ui.client.page.entry.grouping.GroupingComboBox)

Aggregations

SeparatorToolItem (com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem)1 ActionToolBar (org.activityinfo.ui.client.page.common.toolbar.ActionToolBar)1 GroupingComboBox (org.activityinfo.ui.client.page.entry.grouping.GroupingComboBox)1