/** * Returns the global size of the collection, without filtering it * * @return */ public int fullSize() { return getItems().size(); }
/** Returns the global size of the collection, without filtering it */ public int fullSize() { return getItems().size(); }
/** * Returns a filtered list of items. Subclasses can override if they have a more efficient way * of filtering than in memory keyword comparison */ protected List<T> getFilteredItems() { List<T> items = getItems(); // if needed, filter if (keywords != null && keywords.length > 0) { return filterByKeywords(items); } else { // make a deep copy anyways, the catalog does not do that for us return new ArrayList<T>(items); } }
/** * Returns a filtered list of items. Subclasses can override if they have a more efficient way * of filtering than in memory keyword comparison * * @return */ protected List<T> getFilteredItems() { List<T> items = getItems(); // if needed, filter if (keywords != null && keywords.length > 0) { return filterByKeywords(items); } else { // make a deep copy anyways, the catalog does not do that for us return new ArrayList<T>(items); } }
"component", (T) itemModel.getObject(), dataProvider.getItems(), ReorderableTablePanel.this, upTitle,
/** * Sets the table into pageable/non pageable mode. The default is pageable, in non pageable mode * both pagers will be hidden and the number of items per page is set to the DataView default * (Integer.MAX_VALUE) * * @param pageable */ public void setPageable(boolean pageable) { if (!pageable) { navigatorTop.setVisible(false); navigatorBottom.setVisible(false); dataView.setItemsPerPage(Integer.MAX_VALUE); selection = new boolean[getDataProvider().getItems().size()]; } else { navigatorTop.setVisible(true); navigatorBottom.setVisible(true); dataView.setItemsPerPage(DEFAULT_ITEMS_PER_PAGE); selection = new boolean[DEFAULT_ITEMS_PER_PAGE]; } } }