Package org.openfaces.component.filter

Examples of org.openfaces.component.filter.CompositeFilterCriterion


            return filteredList;
        return filteredList.subList(pageStart, pageStart + pageSize);
    }

    private List requestSortedAndFilteredCollection() {
        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        String sortColumnId = Faces.var("sortColumnId", String.class);
        final boolean sortAscending = Faces.var("sortAscending", Boolean.class);

        List<TestBean> sortedList = new ArrayList<TestBean>(collection1);
        if ("col1".equals(sortColumnId))
View Full Code Here


                countries.add(currentCity.getCountry());
        }
    }

    public List<City> getCitiesList() {
        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        boolean sortAscending = Faces.var("sortAscending", Boolean.class);
        String sortColumnId = Faces.var("sortColumnId", String.class);
        int pageStart = Faces.var("pageStart", Integer.class);
        int pageSize = Faces.var("pageSize", Integer.class);
        CitiesDB.CitySelectionCriteria filterConditions = calculateFilterConditions(filterCriteria);
View Full Code Here

        ranges.add("12,500,000 \u2013 16,000,000");
        return ranges;
    }

    public int getRowCount() {
        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        CitiesDB.CitySelectionCriteria filterConditions = calculateFilterConditions(filterCriteria);
        return citiesDB.getRecordCount(filterConditions);
    }
View Full Code Here

        colorsNames.add("blue");
        colorsNames.add("violet");
    }

    public int getRowCount() {
        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        return colorDB.getFilteredColorCount(filterCriteria);
    }
View Full Code Here

        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        return colorDB.getFilteredColorCount(filterCriteria);
    }

    public List getColorList() {
        CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
        boolean sortAscending = Faces.var("sortAscending", Boolean.class);
        String sortColumnId = Faces.var("sortColumnId", String.class);
        int pageStart = Faces.var("pageStart", Integer.class);
        int pageSize = Faces.var("pageSize", Integer.class);
        return colorDB.findColorsForPage(filterCriteria, sortColumnId, sortAscending, pageStart, pageSize);
View Full Code Here

        writer.writeAttribute("class", styleClass, null);
        writer.flush();
    }

    private void synchronizeFilterRowsWithCriteria(CompositeFilter filter) {
        CompositeFilterCriterion criteria = (CompositeFilterCriterion) filter.getValue();
        Iterator<FilterRow> rowIterator = filter.getFilterRows().iterator();
        if (criteria != null) {
            for (FilterCriterion criterion : criteria.getCriteria()) {
                if (criterion instanceof OrFilterCriterion) {
                    List<FilterCriterion> subCriteria = ((OrFilterCriterion) criterion).getCriteria();
                    for (FilterCriterion subCriterion : subCriteria)
                        synchronizeRowWithCriterion(filter, rowIterator, (ExpressionFilterCriterion) subCriterion);
                } else {
View Full Code Here

TOP

Related Classes of org.openfaces.component.filter.CompositeFilterCriterion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.