Search in sources :

Example 1 with ISearchFilterService

use of org.eclipse.scout.rt.client.services.common.search.ISearchFilterService in project scout.rt by eclipse.

the class AbstractPageWithTable method getSearchFilter.

@Override
public SearchFilter getSearchFilter() {
    ensureSearchFormCreated();
    ensureSearchFormStarted();
    if (getSearchFormInternal() != null) {
        return getSearchFormInternal().getSearchFilter();
    } else {
        ISearchFilterService sfs = BEANS.get(ISearchFilterService.class);
        if (sfs != null) {
            return sfs.createNewSearchFilter();
        } else {
            return new SearchFilter();
        }
    }
}
Also used : ISearchFilterService(org.eclipse.scout.rt.client.services.common.search.ISearchFilterService) SearchFilter(org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter)

Example 2 with ISearchFilterService

use of org.eclipse.scout.rt.client.services.common.search.ISearchFilterService in project scout.rt by eclipse.

the class AbstractForm method resetSearchFilter.

@Override
public void resetSearchFilter() {
    if (m_searchFilter == null) {
        SearchFilter filter;
        ISearchFilterService sfs = BEANS.get(ISearchFilterService.class);
        if (sfs != null) {
            filter = sfs.createNewSearchFilter();
        } else {
            filter = new SearchFilter();
        }
        m_searchFilter = filter;
    }
    try {
        interceptResetSearchFilter(m_searchFilter);
    } catch (Exception e) {
        BEANS.get(ExceptionHandler.class).handle(e);
    }
}
Also used : ISearchFilterService(org.eclipse.scout.rt.client.services.common.search.ISearchFilterService) SearchFilter(org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter) PlatformException(org.eclipse.scout.rt.platform.exception.PlatformException) ProcessingException(org.eclipse.scout.rt.platform.exception.ProcessingException) VetoException(org.eclipse.scout.rt.platform.exception.VetoException)

Aggregations

ISearchFilterService (org.eclipse.scout.rt.client.services.common.search.ISearchFilterService)2 SearchFilter (org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter)2 PlatformException (org.eclipse.scout.rt.platform.exception.PlatformException)1 ProcessingException (org.eclipse.scout.rt.platform.exception.ProcessingException)1 VetoException (org.eclipse.scout.rt.platform.exception.VetoException)1