/** * Sets the currently sorted column property id. * * @param propertyId * the Container property id of the currently sorted column. */ public void setSortContainerPropertyId(Object propertyId) { setSortContainerPropertyId(propertyId, true); }
@Override public void setSortContainerPropertyId(Object propertyId) { sortedColumn = String.valueOf(propertyId); super.setSortContainerPropertyId(propertyId); 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(); } }
boolean sortAscending = Boolean.parseBoolean(columnsElem.attributeValue("sortAscending")); component.setSortContainerPropertyId(null); component.setSortAscending(sortAscending); component.setSortContainerPropertyId(sortProperty); component.setSortContainerPropertyId(null);
&& !"null".equals(colId)) { final Object id = columnIdMap.get(colId); setSortContainerPropertyId(id, false); doSort = true;