Revision ff732f0a
Added by Patrick Plitzner almost 8 years ago
- ID ff732f0a45cd8539f08196159f54d69496300ffe
- Parent 99f6841e
src/main/java/eu/etaxonomy/cdm/vaadin/model/LazyLoadedContainer.java | ||
---|---|---|
18 | 18 |
|
19 | 19 |
DistributionTableComponentListener listener; |
20 | 20 |
|
21 |
|
|
21 |
|
|
22 | 22 |
public LazyLoadedContainer(Class type) throws IllegalArgumentException { |
23 | 23 |
super(type); |
24 | 24 |
} |
25 |
//
|
|
25 |
// |
|
26 | 26 |
// public LazyLoadedContainer(Class type, IClassificationService classificationService, ITaxonNodeService taxonNodeService, IDescriptionService descriptionService) throws IllegalArgumentException { |
27 | 27 |
// super(type); |
28 | 28 |
// this.classificationService = classificationService; |
29 | 29 |
// this.taxonNodeService = taxonNodeService; |
30 | 30 |
// this.descriptionService = descriptionService; |
31 |
//
|
|
31 |
// |
|
32 | 32 |
// } |
33 |
|
|
33 |
|
|
34 | 34 |
@Override |
35 | 35 |
public int size(){ |
36 |
return listener.getSizeOfClassification();
|
|
36 |
return listener.getSizeOfTaxonNode();
|
|
37 | 37 |
} |
38 |
|
|
38 |
|
|
39 | 39 |
@Override |
40 | 40 |
public BeanItem getItem(Object itemId){ |
41 | 41 |
TaxonNode taxonNode = ((TaxonNode) itemId); |
42 | 42 |
CdmBase.deproxy(taxonNode, TaxonNode.class); |
43 |
Taxon taxon = (Taxon)taxonNode.getTaxon();
|
|
43 |
Taxon taxon = taxonNode.getTaxon(); |
|
44 | 44 |
CdmBase.deproxy(taxon, Taxon.class); |
45 | 45 |
CdmTaxonTableCollection cttc = new CdmTaxonTableCollection(taxon); |
46 | 46 |
return new BeanItem(cttc); |
47 | 47 |
} |
48 |
|
|
48 |
|
|
49 | 49 |
@Override |
50 | 50 |
public List getItemIds(int startIndex, int numberOfIds){ |
51 | 51 |
int endIndex = startIndex + numberOfIds; |
... | ... | |
60 | 60 |
this.listener = listener; |
61 | 61 |
} |
62 | 62 |
|
63 |
|
|
63 |
|
|
64 | 64 |
|
65 | 65 |
} |
Also available in: Unified diff
Load taxonNodes in SQL query (unstable) #5458