Search in sources :

Example 1 with ActionToolBar

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);
}
Also used : ActionToolBar(org.activityinfo.client.page.common.toolbar.ActionToolBar)

Example 2 with ActionToolBar

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);
}
Also used : ActionToolBar(org.activityinfo.client.page.common.toolbar.ActionToolBar)

Example 3 with ActionToolBar

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);
}
Also used : ActionListener(org.activityinfo.client.page.common.toolbar.ActionListener) ActionToolBar(org.activityinfo.client.page.common.toolbar.ActionToolBar)

Example 4 with 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);
}
Also used : ActionToolBar(org.activityinfo.client.page.common.toolbar.ActionToolBar)

Example 5 with ActionToolBar

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);
}
Also used : SeparatorToolItem(com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem) ActionToolBar(org.activityinfo.client.page.common.toolbar.ActionToolBar)

Aggregations

ActionToolBar (org.activityinfo.client.page.common.toolbar.ActionToolBar)8 FieldEvent (com.extjs.gxt.ui.client.event.FieldEvent)2 LabelToolItem (com.extjs.gxt.ui.client.widget.toolbar.LabelToolItem)2 SeparatorToolItem (com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem)2 DateWrapper (com.extjs.gxt.ui.client.util.DateWrapper)1 Label (com.extjs.gxt.ui.client.widget.Label)1 DateTimeFormat (com.google.gwt.i18n.client.DateTimeFormat)1 NavigationEvent (org.activityinfo.client.event.NavigationEvent)1 ActionListener (org.activityinfo.client.page.common.toolbar.ActionListener)1 GroupingComboBox (org.activityinfo.client.page.entry.grouping.GroupingComboBox)1 Month (org.activityinfo.shared.command.Month)1