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();
}
}
}
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);
}
}
Aggregations