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

knowledgepixels / nanodash / 28789064412

06 Jul 2026 11:44AM UTC coverage: 28.51% (+0.008%) from 28.502%
28789064412

push

github

web-flow
Merge pull request #535 from knowledgepixels/feat/navigation-context

feat: persistent navigation context with back-link and post-publish forwarding

1811 of 7177 branches covered (25.23%)

Branch coverage included in aggregate %.

3710 of 12188 relevant lines covered (30.44%)

4.52 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
    @Override
31
    public boolean hasFullWidthContent() {
32
        return true;
×
33
    }
34

35
    /**
36
     * Constructor for ResultTablePage.
37
     *
38
     * @param parameters Page parameters containing the query to be executed.
39
     */
40
    public ResultTablePage(final PageParameters parameters) {
41
        super(parameters);
×
42

43
        query = parameters.get("query").toString();
×
44
        add(new TitleBar("titlebar", this, null));
×
45
        final String shortName = query.replaceFirst("^.*/", "");
×
46
        add(new Label("pagetitle", shortName + " (result table) | nanodash"));
×
47

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

50
    }
×
51

52
    /**
53
     * <p>hasAutoRefreshEnabled.</p>
54
     *
55
     * @return a boolean
56
     */
57
    protected boolean hasAutoRefreshEnabled() {
58
        return true;
×
59
    }
60

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