/** * Push a {@link Column} onto the list at index zero, setting ascending to * true. If the column already exists, it will be removed from its current * position and placed at the start of the list. If the Column is already at * the start of the list, its ascending bit will be flipped (ascending to * descending and vice versa). * * @param column the {@link Column} to push * @return the {@link ColumnSortInfo} that was pushed */ public ColumnSortInfo push(Column<?, ?> column) { // If the column matches the primary column, toggle the order. boolean ascending = (column == null) ? true : column.isDefaultSortAscending(); if (size() > 0 && get(0).getColumn() == column) { ascending = !get(0).isAscending(); } // Push the new column. ColumnSortInfo toRet = new ColumnSortInfo(column, ascending); push(toRet); return toRet; }
/** * Push a {@link Column} onto the list at index zero, setting ascending to * true. If the column already exists, it will be removed from its current * position and placed at the start of the list. If the Column is already at * the start of the list, its ascending bit will be flipped (ascending to * descending and vice versa). * * @param column the {@link Column} to push * @return the {@link ColumnSortInfo} that was pushed */ public ColumnSortInfo push(Column<?, ?> column) { // If the column matches the primary column, toggle the order. boolean ascending = (column == null) ? true : column.isDefaultSortAscending(); if (size() > 0 && get(0).getColumn() == column) { ascending = !get(0).isAscending(); } // Push the new column. ColumnSortInfo toRet = new ColumnSortInfo(column, ascending); push(toRet); return toRet; }
public void refreshTable() { processVarListGrid.getColumnSortList().clear(); processVarListGrid.getColumnSortList().push( new ColumnSortList.ColumnSortInfo( processVarListGrid.getColumn( 2 ), false ) ); processVarListGrid.redraw(); }
public void refreshTable() { processVarListGrid.getColumnSortList().clear(); processVarListGrid.getColumnSortList().push(new ColumnSortList.ColumnSortInfo(processVarListGrid.getColumn(2), false)); processVarListGrid.redraw(); }
/** * Push a {@link Column} onto the list at index zero, setting ascending to * true. If the column already exists, it will be removed from its current * position and placed at the start of the list. If the Column is already at * the start of the list, its ascending bit will be flipped (ascending to * descending and vice versa). * * @param column the {@link Column} to push * @return the {@link ColumnSortInfo} that was pushed */ public ColumnSortInfo push(Column<?, ?> column) { // If the column matches the primary column, toggle the order. boolean ascending = (column == null) ? true : column.isDefaultSortAscending(); if (size() > 0 && get(0).getColumn() == column) { ascending = !get(0).isAscending(); } // Push the new column. ColumnSortInfo toRet = new ColumnSortInfo(column, ascending); push(toRet); return toRet; }