Package com.inmethod.grid.IGridSortState

Examples of com.inmethod.grid.IGridSortState.ISortStateColumn


    boolean sortAsc = true;
   
    // is there any sorting
    if (query.getSortState().getColumns().size() > 0) {
      // get the most relevant column
      ISortStateColumn state = query.getSortState().getColumns().get(0);
     
      // get the column sort properties
      sortProperty = state.getPropertyName();
      sortAsc = state.getDirection() == IGridSortState.Direction.ASC;
    }
   
    // since we don't know the actual item count we try to load one item more than requested
    // if there are n+1 items we know there will be something on the next page
   
View Full Code Here


    boolean sortAsc = true;
   
    // is there any sorting
    if (query.getSortState().getColumns().size() > 0) {
      // get the most relevant column
      ISortStateColumn state = query.getSortState().getColumns().get(0);
     
      // get the column sort properties
      sortProperty = state.getPropertyName();
      sortAsc = state.getDirection() == IGridSortState.Direction.ASC;
    }
   
    // determine the total count
    result.setTotalCount(database.getCount());
   
View Full Code Here

    abstract BrixNode getFolderNode();

    private void sort(List<BrixNode> node, IGridSortState state) {
        int max = Math.min(state.getColumns().size() - 1, 2);
        for (int i = max; i >= 0; --i) {
            ISortStateColumn column = state.getColumns().get(i);
            sort(node, column.getPropertyName(), column.getDirection());
        }
    }
View Full Code Here

TOP

Related Classes of com.inmethod.grid.IGridSortState.ISortStateColumn

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.