use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.
the class BeanTabFolderModelImpl method removeFiltersForProperty.
@Override
public void removeFiltersForProperty(final String id, final String propertyName) {
final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
final IUiFilter currentFilter = getFilter(id);
if (currentFilter != null) {
setFilter(id, filterTools.removeProperty(currentFilter, propertyName));
}
}
use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.
the class BeanTableDeleteColumnFiltersActionBuilder method getEnabledState.
private IEnabledState getEnabledState(final IBeanTableModel<?> model) {
final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
final IUiFilter uiFilter = model.getFilter(IBeanTableModel.UI_FILTER_ID);
if (uiFilter != null && filterTools.isPropertyFiltered(uiFilter, attribute.getPropertyName())) {
return EnabledState.ENABLED;
} else {
// $NON-NLS-1$
return EnabledState.disabled(Messages.getString("BeanTableDeleteColumnFiltersActionBuilder.there_is_no_filter_defined_on_this_column"));
}
}
Aggregations