• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 19232563835

10 Nov 2025 01:03PM UTC coverage: 14.137% (+0.2%) from 13.973%
19232563835

push

github

tkuhn
feat(ResourceView): Support for hasPageSize

519 of 4646 branches covered (11.17%)

Branch coverage included in aggregate %.

1354 of 8603 relevant lines covered (15.74%)

0.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/component/QueryResultList.java
1
package com.knowledgepixels.nanodash.component;
2

3
import org.apache.wicket.markup.html.basic.Label;
4
import org.apache.wicket.markup.html.panel.Panel;
5
import org.apache.wicket.markup.repeater.RepeatingView;
6
import org.nanopub.extra.services.ApiResponse;
7
import org.nanopub.extra.services.ApiResponseEntry;
8

9
import com.knowledgepixels.nanodash.GrlcQuery;
10
import com.knowledgepixels.nanodash.ViewDisplay;
11

12
public class QueryResultList extends Panel {
13

14
    private RepeatingView listItems;
15

16
    QueryResultList(String markupId, GrlcQuery grlcQuery, ApiResponse response, ViewDisplay viewDisplay) {
17
        super(markupId);
×
18

19
        String label = grlcQuery.getLabel();
×
20
        if (viewDisplay.getView().getTitle() != null) {
×
21
            label = viewDisplay.getView().getTitle();
×
22
        }
23
        add(new Label("label", label));
×
24
        listItems = new RepeatingView("listItems");
×
25
        for (ApiResponseEntry entry : response.getData()) {
×
26
            StringBuilder labelText = new StringBuilder();
×
27
            int count = 0;
×
28
            for (String header : response.getHeader()) {
×
29
                String dataValue = entry.get(header);
×
30
                if (dataValue != null && !dataValue.isBlank()) {
×
31
                    labelText.append(dataValue);
×
32
                    if (count < response.getHeader().length - 1) {
×
33
                        labelText.append(", ");
×
34
                    }
35
                }
36
                count++;
×
37

38
            }
39
            listItems.add(new Label(listItems.newChildId(), labelText.toString()));
×
40
        }
×
41
        add(listItems);
×
42
    }
×
43

44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc