Package org.richfaces.model.impl.expressive

Examples of org.richfaces.model.impl.expressive.ObjectWrapperFactory.wrapList()


      ObjectWrapperFactory wrapperFactory = new RowKeyWrapperFactory(
          context, var, sortFields);
     
      WrappedBeanComparator2 wrappedBeanComparator = new WrappedBeanComparator2(
        sortFields, locale);
      wrapperFactory.wrapList(rowKeys);
      Collections.sort(rowKeys, wrappedBeanComparator);
      wrapperFactory.unwrapList(rowKeys);
    }
  }
}
View Full Code Here


      FacesContext context = FacesContext.getCurrentInstance();
      List <Object> filteredCollection = new ArrayList<Object>();
      ObjectWrapperFactory wrapperFactory = new RowKeyWrapperFactory(context, var, filterFields);
     
      WrappedBeanFilter wrappedBeanFilter = new WrappedBeanFilter(filterFields, locale);
      wrapperFactory.wrapList(rowKeys);
      for (Object object : rowKeys) {
        if(wrappedBeanFilter.accept((JavaBeanWrapper)object)) {
          filteredCollection.add(object);
        }
      }
View Full Code Here

      ObjectWrapperFactory wrapperFactory = new RowKeyWrapperFactory(
          context, var, sortFields);
     
      WrappedBeanComparator2 wrappedBeanComparator = new WrappedBeanComparator2(
        sortFields, locale);
      wrapperFactory.wrapList(rowKeys);
      Collections.sort(rowKeys, wrappedBeanComparator);
      wrapperFactory.unwrapList(rowKeys);
    }
  }
}
View Full Code Here

   
    ObjectWrapperFactory factory = new ObjectWrapperFactory(context, var, sortOrder);
    final SortField [] fields = sortOrder.getFields();

   
    factory.wrapList(collection);

    Collections.sort(collection, new WrappedBeanComparator(fields));
   
    factory.unwrapList(collection);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.