Search in sources :

Example 1 with ToolBar

use of com.extjs.gxt.ui.client.widget.toolbar.ToolBar in project activityinfo by bedatadriven.

the class IndicatorTreePanel method createFilterBar.

private void createFilterBar() {
    toolBar = new ToolBar();
    toolBar.add(new LabelToolItem(I18N.CONSTANTS.search()));
    filter = new FilterField();
    filter.addListener(Events.Blur, event -> {
        if (filter.getRawValue() == null || filter.getRawValue().length() == 0) {
            toolBar.setVisible(false);
        }
    });
    toolBar.add(filter);
    toolBar.setVisible(false);
    filter.bind(store);
    setTopComponent(toolBar);
}
Also used : LabelToolItem(com.extjs.gxt.ui.client.widget.toolbar.LabelToolItem) ToolBar(com.extjs.gxt.ui.client.widget.toolbar.ToolBar) StoreFilterField(com.extjs.gxt.ui.client.widget.form.StoreFilterField)

Aggregations

StoreFilterField (com.extjs.gxt.ui.client.widget.form.StoreFilterField)1 LabelToolItem (com.extjs.gxt.ui.client.widget.toolbar.LabelToolItem)1 ToolBar (com.extjs.gxt.ui.client.widget.toolbar.ToolBar)1