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);
}
Aggregations