Examples of wrapList()


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

      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

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

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

   
    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

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

      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

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

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

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

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

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

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

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

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

    if (shouldSort()) {
      ObjectWrapperFactory wrapperFactory = new ObjectWrapperFactory(
          context, var, sortFields);
      WrappedBeanComparator2 wrappedBeanComparator = new WrappedBeanComparator2(
          sortFields);
      wrapperFactory.wrapList(modifedcollection);
      Collections.sort(modifedcollection, wrappedBeanComparator);
      wrapperFactory.unwrapList(modifedcollection);
    }
    return modifedcollection;
    
View Full Code Here

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

      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
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.