/** Sets the descending sorter with the class name, or null for * no sorter for the descending order. * @since 5.0.6 */ public void setSortDescending(String clsnm) throws ClassNotFoundException, InstantiationException, IllegalAccessException { if (!Strings.isBlank(clsnm) && clsnm.startsWith("client") && !_sortDscNm.equals(clsnm)) { _sortDscNm = clsnm; smartUpdate("sortDescending", clsnm); } else setSortDescending(toComparator(clsnm)); }
try { setSortAscending(type); setSortDescending(type); } catch (Throwable ex) { throw UiException.Aide.wrap(ex); //not possible to throw ClassNotFoundException... setSortAscending(new TreeitemComparator(this, true, true)); if (getSortDescending() == null) setSortDescending(new TreeitemComparator(this, false, true)); } else if (!Strings.isBlank(type) && type.startsWith("auto")) { final int j = type.indexOf('('); setSortDescending(new FieldComparator(name, false)); else setSortDescending(new ArrayComparator(index, false)); _isCustomDscComparator = false; setSortDescending((Comparator) null);