Search in sources :

Example 6 with IUiFilterTools

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));
    }
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Example 7 with IUiFilterTools

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"));
    }
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Aggregations

IUiFilter (org.jowidgets.cap.ui.api.filter.IUiFilter)7 IUiFilterTools (org.jowidgets.cap.ui.api.filter.IUiFilterTools)7