Package com.adaptrex.core.ext

Examples of com.adaptrex.core.ext.Sorter


      List<Sorter> sorters = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> sort = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("sort").get(0), List.class);
      for (Map<String,String> sortItem : sort) {
        sorters.add(new Sorter(sortItem.get("property"), sortItem.get("direction"), null));
      }
      storeData.setSorters(sorters);
    }
   
    if (params.containsKey("group")) {
      List<Sorter> groupers = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> group = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("group").get(0), List.class);
      for (Map<String,String> groupItem : group) {
        groupers.add(new Sorter(groupItem.get("property"), groupItem.get("direction"), null));
      }
      storeData.setGroupers(groupers);
    }
   
    if (params.containsKey("filter")) {
View Full Code Here


    this.purgePageCount = purgePageCount;
    return this;
 
 
  public StoreComponent addGrouper(String property, String direction, String root) {
    groupers.add(new Sorter(property, direction, root));
    return this;
  }
View Full Code Here

    groupers.add(new Sorter(property, direction, root));
    return this;
  }
 
  public StoreComponent addSorter(String property, String direction, String root) {
    sorters.add(new Sorter(property, direction, root));
    return this;
  }   
View Full Code Here

      List<Sorter> sorters = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> sort = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("sort").get(0), List.class);
      for (Map<String,String> sortItem : sort) {
        sorters.add(new Sorter(sortItem.get("property"), sortItem.get("direction"), null));
      }
      storeData.setSorters(sorters);
    }
   
    if (params.containsKey("group")) {
      List<Sorter> groupers = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> group = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("group").get(0), List.class);
      for (Map<String,String> groupItem : group) {
        groupers.add(new Sorter(groupItem.get("property"), groupItem.get("direction"), null));
      }
      storeData.setGroupers(groupers);
    }
   
    if (params.containsKey("filter")) {
View Full Code Here

    }
    return this;
  }
 
  public StoreComponent addSorter(String property, String direction) {
    sorters.add(new Sorter(property, direction));
    return this;
  }
View Full Code Here

    }
    return this;
  }
 
  public StoreComponent addGrouper(String property, String direction) {
    groupers.add(new Sorter(property, direction));
    return this;
  }
View Full Code Here

      List<Sorter> sorters = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> sort = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("sort").get(0), List.class);
      for (Map<String,String> sortItem : sort) {
        sorters.add(new Sorter(sortItem.get("property"), sortItem.get("direction"), null));
      }
      storeData.setSorters(sorters);
    }
   
    if (params.containsKey("group")) {
      List<Sorter> groupers = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> group = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("group").get(0), List.class);
      for (Map<String,String> groupItem : group) {
        groupers.add(new Sorter(groupItem.get("property"), groupItem.get("direction"), null));
      }
      storeData.setGroupers(groupers);
    }
   
    if (params.containsKey("filter")) {
View Full Code Here

    this.purgePageCount = purgePageCount;
    return this;
 
 
  public StoreComponent addGrouper(String property, String direction, String root) {
    groupers.add(new Sorter(property, direction, root));
    return this;
  }
View Full Code Here

    groupers.add(new Sorter(property, direction, root));
    return this;
  }
 
  public StoreComponent addSorter(String property, String direction, String root) {
    sorters.add(new Sorter(property, direction, root));
    return this;
  }   
View Full Code Here

      List<Sorter> sorters = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> sort = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("sort").get(0), List.class);
      for (Map<String,String> sortItem : sort) {
        sorters.add(new Sorter(sortItem.get("property"), sortItem.get("direction")));
      }
      storeData.setSorters(sorters);
    }
   
    if (params.containsKey("group")) {
      List<Sorter> groupers = new ArrayList<Sorter>();
      @SuppressWarnings("unchecked")
      List<Map<String, String>> group = (List<Map<String, String>>)
          StringUtilities.fromJson(params.get("group").get(0), List.class);
      for (Map<String,String> groupItem : group) {
        groupers.add(new Sorter(groupItem.get("property"), groupItem.get("direction")));
      }
      storeData.setGroupers(groupers);
    }
   
    if (params.containsKey("filter")) {
View Full Code Here

TOP

Related Classes of com.adaptrex.core.ext.Sorter

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.