269270271272273274275276277
WrappedBeanComparator2 wrappedBeanComparator = new WrappedBeanComparator2( sortFields, locale); wrapperFactory.wrapList(rowKeys); Collections.sort(rowKeys, wrappedBeanComparator); wrapperFactory.unwrapList(rowKeys); } } }
254255256257258259260261262263264
if(wrappedBeanFilter.accept((JavaBeanWrapper)object)) { filteredCollection.add(object); } } rowKeys = filteredCollection; wrapperFactory.unwrapList(rowKeys); } return rowKeys; } protected void sort(List<SortField2> sortFields) {
5758596061626364656667
factory.wrapList(collection); Collections.sort(collection, new WrappedBeanComparator(fields)); factory.unwrapList(collection); return collection; }