Package er.extensions.eof

Examples of er.extensions.eof.ERXSortOrdering


   */
  public static void updateDisplayGroupSort(WODisplayGroup dg, NSArray sortConfig) {
    NSMutableArray sortOrders = new NSMutableArray(sortConfig.count());
    for (int i = 0; i < sortConfig.count(); i++) {
      NSDictionary column = (NSDictionary) sortConfig.objectAtIndex(i);
      sortOrders.addObject(new ERXSortOrdering((String) column.objectForKey(KEY_PATH), (SORT_ASCENDING.equals(column.objectForKey(SORT_DIRECTION)) ? EOSortOrdering.CompareCaseInsensitiveAscending : EOSortOrdering.CompareCaseInsensitiveDescending)));
    }

    // Only set this if there has been an actual change to avoid discarding fetched objects
    if (! sortOrders.equals(dg.sortOrderings()) ) {
      dg.setSortOrderings(sortOrders);
View Full Code Here

TOP

Related Classes of er.extensions.eof.ERXSortOrdering

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.