/** * Sets the table in ascending order. * * @param ascending * <code>true</code> if ascending, <code>false</code> if * descending. */ public void setSortAscending(boolean ascending) { setSortAscending(ascending, true); }
@Override public void setSortAscending(boolean ascending) { sortedAscending = ascending; super.setSortAscending(ascending); sortEventHandler.fire(); }
@Override public void sortBy(Object propertyId, boolean ascending) { if (isSortable()) { component.setSortAscending(ascending); component.setSortContainerPropertyId(propertyId); component.sort(); } }
@Override public void sort(String columnId, SortDirection direction) { Column column = getColumn(columnId); if (column == null) { throw new IllegalArgumentException("Unable to find column " + columnId); } if (isSortable()) { component.setSortAscending(direction == SortDirection.ASCENDING); component.setSortContainerPropertyId(column.getId()); component.sort(); } }
component.setSortAscending(sortAscending); component.setSortContainerPropertyId(sortProperty);
.booleanValue(); if (state != sortAscending) { setSortAscending(state, false); doSort = true;