Package org.richfaces.model

Examples of org.richfaces.model.SortField


                AbstractColumn column = (AbstractColumn) component;
                FilterField filterField = column.getFilterField();
                if (filterField != null) {
                    filterFields.add(filterField);
                }
                SortField sortField = column.getSortField();
                if (sortField != null) {
                    sortFieldsMap.put(component.getId(), sortField);
                }
            }
        }
        List<SortField> sortFields = new LinkedList<SortField>();
        Collection<?> sortPriority = getSortPriority();
        if (sortPriority != null) {
            for (Object object : sortPriority) {
                SortField sortField = sortFieldsMap.get(object);
                if (sortField != null) {
                    sortFields.add(sortField);
                    sortFieldsMap.remove(object);
                }
            }
View Full Code Here


    if (sortOrder != null) {
      SortField[] sortFields = sortOrder.getFields();
     
      if (sortFields != null) {
        for (int i = 0; i < sortFields.length && sorting == null; i++) {
          SortField sortField = sortFields[i];
         
          if ((name != null && name.equals(sortField.getName()))
              || columnIndex == sortField.getIndex()) {
            sorting = sortField.getAscending();
          }
        }
      }
    }
   
View Full Code Here

 
  private List <DemoInventoryItem> allCars = null;

  public DataTableScrollerBean() {
    initColumnsHeaders();
    SortField[] fields = {new SortField("make", true)};
    order.setFields(fields);
  }
View Full Code Here

TOP

Related Classes of org.richfaces.model.SortField

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.