public BaseDataProvider<T, S> setSortAsc(S property) { super.setSort(property, SortOrder.ASCENDING); return this; } public BaseDataProvider<T, S> setSortDesc(S property) {
public BaseDataProvider<T, S> setSortDesc(S property) { super.setSort(property, SortOrder.DESCENDING); return this; }
public BaseTreeDataProvider<T, S> setSortAsc(S property) { super.setSort(property, SortOrder.ASCENDING); return this; } public BaseTreeDataProvider<T, S> setSortDesc(S property) {
public BaseDataProvider<T, S> setSortAsc(S property) { super.setSort(property, SortOrder.ASCENDING); return this; } public BaseDataProvider<T, S> setSortDesc(S property) {
public BaseTreeDataProvider<T, S> setSortAsc(S property) { super.setSort(property, SortOrder.ASCENDING); return this; } public BaseTreeDataProvider<T, S> setSortDesc(S property) {
public BaseTreeDataProvider<T, S> setSortDesc(S property) { super.setSort(property, SortOrder.DESCENDING); return this; }
public BaseTreeDataProvider<T, S> setSortDesc(S property) { super.setSort(property, SortOrder.DESCENDING); return this; }
public BaseDataProvider(S defaultSort) { super.setSort(defaultSort, SortOrder.ASCENDING); }
public BaseTreeDataProvider(S defaultSort) { super.setSort(defaultSort, SortOrder.ASCENDING); }
public BaseDataProvider<T, S> setSortDesc(S property) { super.setSort(property, SortOrder.DESCENDING); return this; }
public BaseTreeDataProvider(S defaultSort) { super.setSort(defaultSort, SortOrder.ASCENDING); }
public BaseDataProvider(S defaultSort) { super.setSort(defaultSort, SortOrder.ASCENDING); }
@Override public void defineDefaultSorting(SortableDataProvider<ODocument, String> provider, OClass oClass) { if(oClass==null) return; OProperty property = CustomAttribute.SORT_BY.getValue(oClass); Boolean order = CustomAttribute.SORT_ORDER.getValue(oClass); SortOrder sortOrder = order==null?SortOrder.ASCENDING:(order?SortOrder.ASCENDING:SortOrder.DESCENDING); if(property==null) { if(order==null) provider.setSort(null); else provider.setSort("@rid", sortOrder); } else { provider.setSort(property.getName(), sortOrder); } }
/** * Sets the current sort state * * @param property * sort property * @param ascending * sort direction */ public void setSort(String property, boolean ascending) { setSort(new SortParam(property, ascending)); }
@Override public void setSort(SortParam<S> param) { super.setSort(param); delegate().setSort(param); }
@Override public void setSort(SortParam<S> param) { super.setSort(param); delegate().setSort(param); }
sortableDataProvider.setSort("name", SortOrder.DESCENDING);
sortableDataProvider.setSort("startTime", SortOrder.DESCENDING);