Search in sources :

Example 1 with SelectionListener

use of com.extjs.gxt.ui.client.event.SelectionListener in project activityinfo by bedatadriven.

the class FilterToolBar method createApplyButton.

private void createApplyButton() {
    if (renderApplyButton) {
        applyButton = new Button(I18N.CONSTANTS.apply(), IconImageBundle.ICONS.applyFilter(), new SelectionListener<ButtonEvent>() {

            @Override
            public void componentSelected(ButtonEvent ce) {
                fireEvent(new ApplyFilterEvent());
            }
        });
        add(applyButton);
        setApplyFilterEnabled(false);
    }
}
Also used : Button(com.extjs.gxt.ui.client.widget.button.Button) ButtonEvent(com.extjs.gxt.ui.client.event.ButtonEvent) SelectionListener(com.extjs.gxt.ui.client.event.SelectionListener)

Example 2 with SelectionListener

use of com.extjs.gxt.ui.client.event.SelectionListener in project activityinfo by bedatadriven.

the class FilterToolBar method createRemoveButton.

private void createRemoveButton() {
    if (renderRemoveButton) {
        removeButton = new Button(I18N.CONSTANTS.remove(), IconImageBundle.ICONS.delete(), new SelectionListener<ButtonEvent>() {

            @Override
            public void componentSelected(ButtonEvent ce) {
                fireEvent(new RemoveFilterEvent());
            }
        });
        add(removeButton);
        setRemoveFilterEnabled(false);
    }
}
Also used : Button(com.extjs.gxt.ui.client.widget.button.Button) ButtonEvent(com.extjs.gxt.ui.client.event.ButtonEvent) SelectionListener(com.extjs.gxt.ui.client.event.SelectionListener)

Aggregations

ButtonEvent (com.extjs.gxt.ui.client.event.ButtonEvent)2 SelectionListener (com.extjs.gxt.ui.client.event.SelectionListener)2 Button (com.extjs.gxt.ui.client.widget.button.Button)2