use of org.activityinfo.client.page.common.toolbar.ActionToolBar in project activityinfo by bedatadriven.
the class AbstractGridView method createToolBar.
protected void createToolBar() {
toolBar = new ActionToolBar(presenter);
setTopComponent(toolBar);
initToolBar();
toolBar.setDirty(false);
}
use of org.activityinfo.client.page.common.toolbar.ActionToolBar in project activityinfo by bedatadriven.
the class DbListPage method createToolBar.
private void createToolBar() {
toolBar = new ActionToolBar();
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.newDatabase(), IconImageBundle.ICONS.addDatabase());
toolBar.addEditButton(IconImageBundle.ICONS.editDatabase());
toolBar.addDeleteButton();
toolBar.setListener(presenter);
this.setTopComponent(toolBar);
}
use of org.activityinfo.client.page.common.toolbar.ActionToolBar in project activityinfo by bedatadriven.
the class LockedPeriodGrid method createActionToolbar.
private void createActionToolbar() {
actionToolbar = new ActionToolBar(new ActionListener() {
@Override
public void onUIAction(String actionId) {
if (actionId.equals(UIActions.ADD)) {
eventBus.fireEvent(new StartCreateEvent());
} else if (actionId.equals(UIActions.DELETE)) {
eventBus.fireEvent(new RequestDeleteEvent());
} else if (actionId.equals(UIActions.SAVE)) {
eventBus.fireEvent(new UpdateEvent());
} else if (actionId.equals(UIActions.DISCARD_CHANGES)) {
eventBus.fireEvent(new CancelUpdateEvent());
// } else if (actionId.equals(UIActions.refresh)) {
// eventBus.fireEvent(new RefreshEvent());
}
}
});
actionToolbar.addDeleteButton();
actionToolbar.addCreateButton();
actionToolbar.addSaveSplitButton();
// actionToolbar.addRefreshButton();
actionToolbar.setDeleteEnabled(false);
actionToolbar.setUpdateEnabled(false);
this.setTopComponent(actionToolbar);
}
use of org.activityinfo.client.page.common.toolbar.ActionToolBar in project activityinfo by bedatadriven.
the class DbUserEditor method createToolBar.
private void createToolBar() {
toolBar = new ActionToolBar(this);
toolBar.addSaveSplitButton();
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.addUser(), IconImageBundle.ICONS.addUser());
toolBar.addButton(UIActions.DELETE, I18N.CONSTANTS.delete(), IconImageBundle.ICONS.deleteUser());
toolBar.addButton(UIActions.EXPORT, I18N.CONSTANTS.export(), IconImageBundle.ICONS.excel());
toolBar.addButton(UIActions.MAILING_LIST, I18N.CONSTANTS.CopyAddressToClipBoard(), IconImageBundle.ICONS.dataEntry());
setTopComponent(toolBar);
}
use of org.activityinfo.client.page.common.toolbar.ActionToolBar in project activityinfo by bedatadriven.
the class AttachmentsTab method createToolBar.
public void createToolBar() {
toolBar = new ActionToolBar();
toolBar.addUploadButton();
toolBar.add(new SeparatorToolItem());
toolBar.addDeleteButton();
toolBar.setListener(presenter);
toolBar.setUploadEnabled(false);
toolBar.setDeleteEnabled(false);
}
Aggregations