Search in sources :

Example 1 with EOSortOrdering

use of com.webobjects.eocontrol.EOSortOrdering in project wonder-slim by undur.

the class WODictionaryRepetition method dictionary.

public NSDictionary dictionary() {
    if (_dictionary == null) {
        _dictionary = (NSDictionary) _WOJExtensionsUtil.valueForBindingOrNull("dictionary", this);
        if (_dictionary == null) {
            _dictionary = NSDictionary.EmptyDictionary;
            _keyList = NSArray.EmptyArray;
        } else {
            _keyList = _dictionary.allKeys();
            _keyList = EOSortOrdering.sortedArrayUsingKeyOrderArray(_keyList, new NSArray<>(new EOSortOrdering("toString", EOSortOrdering.CompareAscending)));
        }
    }
    return _dictionary;
}
Also used : NSArray(com.webobjects.foundation.NSArray) EOSortOrdering(com.webobjects.eocontrol.EOSortOrdering)

Example 2 with EOSortOrdering

use of com.webobjects.eocontrol.EOSortOrdering in project wonder-slim by undur.

the class WODictionaryRepetition method dictionary.

public NSDictionary dictionary() {
    if (_dictionary == null) {
        _dictionary = (NSDictionary) _WOJExtensionsUtil.valueForBindingOrNull("dictionary", this);
        if (_dictionary == null) {
            _dictionary = NSDictionary.EmptyDictionary;
            _keyList = NSArray.EmptyArray;
        } else {
            _keyList = _dictionary.allKeys();
            _keyList = EOSortOrdering.sortedArrayUsingKeyOrderArray(_keyList, new NSArray<>(new EOSortOrdering("toString", EOSortOrdering.CompareAscending)));
        }
    }
    return _dictionary;
}
Also used : NSArray(com.webobjects.foundation.NSArray) EOSortOrdering(com.webobjects.eocontrol.EOSortOrdering)

Aggregations

EOSortOrdering (com.webobjects.eocontrol.EOSortOrdering)2 NSArray (com.webobjects.foundation.NSArray)2