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

knowledgepixels / nanodash / 19235243637

10 Nov 2025 02:36PM UTC coverage: 13.754% (-0.6%) from 14.373%
19235243637

push

github

tkuhn
feat(ViewDisplay): Support for specifying width and structural position

514 of 4708 branches covered (10.92%)

Branch coverage included in aggregate %.

1329 of 8692 relevant lines covered (15.29%)

0.68 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.behavior.AttributeAppender;
4
import org.apache.wicket.markup.html.basic.Label;
5
import org.apache.wicket.markup.html.panel.Panel;
6
import org.apache.wicket.markup.repeater.RepeatingView;
7
import org.nanopub.extra.services.ApiResponse;
8
import org.nanopub.extra.services.ApiResponseEntry;
9

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

13
public class QueryResultList extends Panel {
14

15
    private RepeatingView listItems;
16

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

20
        add(new AttributeAppender("class", " col-" + viewDisplay.getDisplayWidth()));
×
21

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

41
            }
42
            listItems.add(new Label(listItems.newChildId(), labelText.toString()));
×
43
        }
×
44
        add(listItems);
×
45
    }
×
46

47
}
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