Changeset 4854 for vlo/branches/vlo-3.0/vlo-web-app/src
- Timestamp:
- 03/31/14 15:12:25 (11 years ago)
- Location:
- vlo/branches/vlo-3.0/vlo-web-app/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/provider/DocumentFieldsProvider.java
r4632 r4854 23 23 import java.util.Collection; 24 24 import java.util.Iterator; 25 import java.util.List; 25 26 import org.apache.solr.common.SolrDocument; 26 27 import org.apache.wicket.markup.repeater.data.IDataProvider; … … 37 38 private final IModel<SolrDocument> documentModel; 38 39 private final FieldFilter fieldFilter; 39 private Collection<DocumentFieldModel> fields;40 private List<DocumentFieldModel> fields; 40 41 41 42 /** … … 49 50 } 50 51 51 private Collection<DocumentFieldModel> getFields() {52 private List<DocumentFieldModel> getFields() { 52 53 if (fields == null) { 53 54 // lazy loading/caching of included field models … … 63 64 } 64 65 66 /** 67 * 68 * @param first index of the first item in the list returned by the iterator 69 * @param count is ignored 70 * @return 71 */ 65 72 @Override 66 73 public Iterator<? extends DocumentField> iterator(long first, long count) { 67 return getFields(). iterator();74 return getFields().listIterator((int) first); 68 75 } 69 76
Note: See TracChangeset
for help on using the changeset viewer.