/** * Sets the current sort state. * * @param param * parameter containing new sorting information */ public void setSort(final SortParam<S> param) { sortState.setSort(param); }
/** * Sets the current sort state * * @param param * parameter containing new sorting information */ public void setSort(SortParam<S> param) { state.setSort(param); }
/** * Sets the current sort state * * @param param * parameter containing new sorting information */ public void setSort(final SortParam<S> param) { state.setSort(param); }
/** * Sets the current sort state * * @param param * parameter containing new sorting information */ public void setSort(SortParam param) { state.setSort(param); }
/** * Sets the current sort state. * * @param param * parameter containing new sorting information */ public void setSort(final SortParam<S> param) { sortState.setSort(param); }
@SuppressWarnings("unchecked") protected void setSort(String property, SortOrder order) { ISortStateLocator<String> locator = (ISortStateLocator<String>) this.provider; ISortState<String> sortState = locator.getSortState(); if (property != null) { sortState.setPropertySortOrder(property, order); } else if (sortState instanceof SingleSortState<?>) { ((SingleSortState<?>) sortState).setSort(null); } }
@SuppressWarnings("unchecked") protected void setSort(String property, SortOrder order) { ISortStateLocator<String> locator = (ISortStateLocator<String>) this.provider; ISortState<String> sortState = locator.getSortState(); if (property != null) { sortState.setPropertySortOrder(property, order); } else if (sortState instanceof SingleSortState<?>) { ((SingleSortState<?>) sortState).setSort(null); } }
private void switchGroupState(IGroupStateLocator groupStateLocator, String groupProperty) { SortParam groupParam = groupStateLocator.getGroupParam(); if (groupParam == null || !groupProperty.equals(groupParam.getProperty())) { groupParam = new SortParam(groupProperty, true); } else { groupParam = null; } groupStateLocator.setGroupParam(groupParam); // reset sort state ISortState sortState = groupStateLocator.getSortState(); if (!SortOrder.NONE.equals(sortState.getPropertySortOrder(groupProperty))) { if (sortState instanceof SingleSortState) { ((SingleSortState) sortState).setSort(null); } } }