| package org.eclipse.osbp.runtime.web.vaadin.components.fields.filter2; |
| |
| import com.vaadin.data.Container.Filter; |
| import com.vaadin.ui.Component; |
| |
| public interface IFilteringComponent extends Component { |
| |
| /** |
| * Returns a proper vaadin filter. |
| * |
| * @return |
| */ |
| Filter getFilter(); |
| |
| /** |
| * Resets all filters. |
| */ |
| void resetAllFilters(); |
| |
| void applyFilters(); |
| |
| void addComponent(ISingleFilterComponent component, int index); |
| |
| void addBetweenTextComponent(String propertyId, int index); |
| |
| <T extends Number & Comparable<?>> void addBetweenDecimalComponent(String propertyId, Class<T> type, int index); |
| |
| void addCompareTextComponent(String propertyId, int index); |
| |
| void addCompareDecimalComponent(String propertyId, Class<? extends Number> type, int index); |
| |
| void addCompareDateComponent(String propertyId, int index); |
| |
| void addBetweenDateComponent(String propertyId, int index); |
| |
| void addCompareBooleanComponent(String propertyId, int index); |
| |
| } |