• 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/page/ResultTablePage.java
1
package com.knowledgepixels.nanodash.page;
2

3
import com.knowledgepixels.nanodash.ViewDisplay;
4
import com.knowledgepixels.nanodash.component.QueryResultTableBuilder;
5
import com.knowledgepixels.nanodash.component.TitleBar;
6
import org.apache.wicket.markup.html.basic.Label;
7
import org.apache.wicket.request.mapper.parameter.PageParameters;
8
import org.nanopub.extra.services.QueryRef;
9

10
/**
11
 * ResultTablePage displays the result of a query in a table format.
12
 */
13
public class ResultTablePage extends NanodashPage {
14

15
    /**
16
     * The mount path for this page.
17
     */
18
    public static final String MOUNT_PATH = "/resulttable";
19

20
    private final String query;
21

22
    /**
23
     * {@inheritDoc}
24
     */
25
    @Override
26
    public String getMountPath() {
27
        return MOUNT_PATH;
×
28
    }
29

30
    /**
31
     * Constructor for ResultTablePage.
32
     *
33
     * @param parameters Page parameters containing the query to be executed.
34
     */
35
    public ResultTablePage(final PageParameters parameters) {
36
        super(parameters);
×
37

38
        query = parameters.get("query").toString();
×
39
        add(new TitleBar("titlebar", this, null));
×
40
        final String shortName = query.replaceFirst("^.*/", "");
×
41
        add(new Label("pagetitle", shortName + " (result table) | nanodash"));
×
42

43
        add(QueryResultTableBuilder.create("table", new QueryRef(query), new ViewDisplay(20)).build());
×
44

45
    }
×
46

47
    /**
48
     * <p>hasAutoRefreshEnabled.</p>
49
     *
50
     * @return a boolean
51
     */
52
    protected boolean hasAutoRefreshEnabled() {
53
        return true;
×
54
    }
55

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