/** * Remove a {@link ColumnSortInfo} from the list. * * @param sortInfo the {@link ColumnSortInfo} to remove */ public boolean remove(ColumnSortInfo sortInfo) { boolean toRet = infos.remove(sortInfo); fireDelegate(); return toRet; }
/** * Removes all of the elements from this list. */ public void clear() { infos.clear(); fireDelegate(); }
/** * Set the limit to a positive value to prevent the growth of the infos list over the given size. * This method will check if the actual infos list is over the limit, and it will fire the * delegate in the case it should remove items from the list. * * The default value (0) means the size can grow indefinitely. * * @param limit the new limit value */ public void setLimit(int limit) { this.limit = limit; if (limit > 0) { // checking the list size, as it might have been populated over the limit boolean modified = false; while (limit < infos.size()) { infos.remove(infos.size() - 1); modified = true; } if (modified) { fireDelegate(); } } }
/** * Removes all of the elements from this list. */ public void clear() { infos.clear(); fireDelegate(); }
/** * Removes all of the elements from this list. */ public void clear() { infos.clear(); fireDelegate(); }
/** * Remove a {@link ColumnSortInfo} from the list. * * @param sortInfo the {@link ColumnSortInfo} to remove */ public boolean remove(ColumnSortInfo sortInfo) { boolean toRet = infos.remove(sortInfo); fireDelegate(); return toRet; }
/** * Remove a {@link ColumnSortInfo} from the list. * * @param sortInfo the {@link ColumnSortInfo} to remove */ public boolean remove(ColumnSortInfo sortInfo) { boolean toRet = infos.remove(sortInfo); fireDelegate(); return toRet; }
/** * Set the limit to a positive value to prevent the growth of the infos list over the given size. * This method will check if the actual infos list is over the limit, and it will fire the * delegate in the case it should remove items from the list. * * The default value (0) means the size can grow indefinitely. * * @param limit the new limit value */ public void setLimit(int limit) { this.limit = limit; if (limit > 0) { // checking the list size, as it might have been populated over the limit boolean modified = false; while (limit < infos.size()) { infos.remove(infos.size() - 1); modified = true; } if (modified) { fireDelegate(); } } }
/** * Set the limit to a positive value to prevent the growth of the infos list over the given size. * This method will check if the actual infos list is over the limit, and it will fire the * delegate in the case it should remove items from the list. * * The default value (0) means the size can grow indefinitely. * * @param limit the new limit value */ public void setLimit(int limit) { this.limit = limit; if (limit > 0) { // checking the list size, as it might have been populated over the limit boolean modified = false; while (limit < infos.size()) { infos.remove(infos.size() - 1); modified = true; } if (modified) { fireDelegate(); } } }