Package com.inmethod.grid

Examples of com.inmethod.grid.IGridSortState


  /**
   * Returns the sort direction for this panel.
   * @return
   */
  private IGridSortState.Direction getSortDirection(IGridColumn column) {
    IGridSortState state = getSortState();
    // we are interested only in the column with highest priority and it must match this panel's sort property
    if (state.getColumns().size() > 0 && state.getColumns().get(0).getPropertyName().equals(column.getSortProperty())) {
      return state.getColumns().get(0).getDirection();
    } else {
      return null;
    }
  }
View Full Code Here


  /**
   * Returns the sort direction for this panel.
   * @return
   */
  private IGridSortState.Direction getSortDirection() {
    IGridSortState state = getSortState();
    // we are interested only in the column with highest priority and it must match this panel's sort property
    if (state.getColumns().size() > 0 && state.getColumns().get(0).getPropertyName().equals(sortProperty)) {
      return state.getColumns().get(0).getDirection();
    } else {
      return null;
    }
  }
View Full Code Here

   * @return
   */
  private boolean isColumnBeingSorted(IGridColumn column) {
    if (column.getSortProperty() != null) {
      AbstractGrid dataGrid = (AbstractGrid) findParent(AbstractGrid.class);
      IGridSortState sortState = dataGrid.getSortState();
      return (sortState.getColumns().size() > 0 && sortState.getColumns().get(0).getPropertyName().equals(
          column.getSortProperty()));
    } else {
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of com.inmethod.grid.IGridSortState

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.