use of org.activityinfo.ui.client.component.filter.FilterToolBar.RemoveFilterHandler in project activityinfo by bedatadriven.
the class PartnerFilterPanel method createFilterToolBar.
private void createFilterToolBar() {
filterToolBar = new FilterToolBar();
filterToolBar.addApplyFilterHandler(new ApplyFilterHandler() {
@Override
public void onApplyFilter(ApplyFilterEvent deleteEvent) {
applyFilter();
}
});
filterToolBar.addRemoveFilterHandler(new RemoveFilterHandler() {
@Override
public void onRemoveFilter(RemoveFilterEvent deleteEvent) {
clearFilter();
ValueChangeEvent.fire(PartnerFilterPanel.this, value);
}
});
setTopComponent(filterToolBar);
}
use of org.activityinfo.ui.client.component.filter.FilterToolBar.RemoveFilterHandler in project activityinfo by bedatadriven.
the class AttributeFilterPanel method createFilterToolBar.
private void createFilterToolBar() {
filterToolBar = new FilterToolBar(false, true);
filterToolBar.addRemoveFilterHandler(new RemoveFilterHandler() {
@Override
public void onRemoveFilter(RemoveFilterEvent deleteEvent) {
clearFilter();
ValueChangeEvent.fire(AttributeFilterPanel.this, value);
}
});
setTopComponent(filterToolBar);
}
use of org.activityinfo.ui.client.component.filter.FilterToolBar.RemoveFilterHandler in project activityinfo by bedatadriven.
the class DateRangePanel method createFilterToolbar.
private void createFilterToolbar() {
filterToolBar = new FilterToolBar();
filterToolBar.addApplyFilterHandler(new ApplyFilterHandler() {
@Override
public void onApplyFilter(ApplyFilterEvent deleteEvent) {
applyFilter();
}
});
filterToolBar.addRemoveFilterHandler(new RemoveFilterHandler() {
@Override
public void onRemoveFilter(RemoveFilterEvent deleteEvent) {
removeFilter();
}
});
filterToolBar.setApplyFilterEnabled(true);
setTopComponent(filterToolBar);
}
use of org.activityinfo.ui.client.component.filter.FilterToolBar.RemoveFilterHandler in project activityinfo by bedatadriven.
the class LocationFilterPanel method createFilterToolBar.
private void createFilterToolBar() {
filterToolBar = new FilterToolBar();
filterToolBar.add(removeSelectedItem);
filterToolBar.addApplyFilterHandler(new ApplyFilterHandler() {
@Override
public void onApplyFilter(ApplyFilterEvent deleteEvent) {
applyFilter();
}
});
filterToolBar.addRemoveFilterHandler(new RemoveFilterHandler() {
@Override
public void onRemoveFilter(RemoveFilterEvent deleteEvent) {
clearFilter();
ValueChangeEvent.fire(LocationFilterPanel.this, value);
}
});
setTopComponent(filterToolBar);
removeSelectedItem.setEnabled(false);
removeSelectedItem.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
for (LocationDTO location : listSelectionModel.getSelection()) {
store.remove(location);
}
}
});
listSelectionModel.addSelectionChangedListener(new SelectionChangedListener<LocationDTO>() {
@Override
public void selectionChanged(SelectionChangedEvent<LocationDTO> se) {
removeSelectedItem.setEnabled(se.getSelectedItem() != null);
}
});
}
use of org.activityinfo.ui.client.component.filter.FilterToolBar.RemoveFilterHandler in project activityinfo by bedatadriven.
the class AdminFilterPanel method createFilterToolBar.
private void createFilterToolBar() {
filterToolBar = new FilterToolBar();
filterToolBar.addApplyFilterHandler(new ApplyFilterHandler() {
@Override
public void onApplyFilter(ApplyFilterEvent deleteEvent) {
applyFilter();
}
});
filterToolBar.addRemoveFilterHandler(new RemoveFilterHandler() {
@Override
public void onRemoveFilter(RemoveFilterEvent deleteEvent) {
removeFilter();
}
});
setTopComponent(filterToolBar);
}
Aggregations