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

knowledgepixels / nanodash / 18155160356

01 Oct 2025 07:42AM UTC coverage: 13.788% (-0.03%) from 13.817%
18155160356

push

github

ashleycaselli
docs: add missing or update Javadoc annotations

445 of 4084 branches covered (10.9%)

Branch coverage included in aggregate %.

1155 of 7520 relevant lines covered (15.36%)

0.69 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/ItemListElement.java
1
package com.knowledgepixels.nanodash.component;
2

3
import org.apache.wicket.markup.html.WebPage;
4
import org.apache.wicket.markup.html.basic.Label;
5
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
6
import org.apache.wicket.markup.html.panel.Panel;
7
import org.apache.wicket.model.Model;
8
import org.apache.wicket.request.mapper.parameter.PageParameters;
9

10
/**
11
 * A reusable component that represents an item in a list with a link and an optional note.
12
 */
13
public class ItemListElement extends Panel {
14
    /**
15
     * Constructor for ItemListElement.
16
     *
17
     * @param markupId   the Wicket markup ID
18
     * @param pageClass  the class of the page to link to
19
     * @param parameters the page parameters for the link
20
     * @param linkText   the text to display for the link
21
     * @param note       an optional note to display alongside the link
22
     */
23
    public ItemListElement(String markupId, Class<? extends WebPage> pageClass, final PageParameters parameters, String linkText, String note) {
24
        super(markupId);
×
25

26
        add(new BookmarkablePageLink<>("link", pageClass, parameters).setBody(Model.of(linkText)));
×
27
        if (note == null) {
×
28
            add(new Label("note").setVisible(false));
×
29
        } else {
30
            add(new Label("note", note));
×
31
        }
32
    }
×
33

34
    /**
35
     * Overloaded constructor without note.
36
     *
37
     * @param markupId   the Wicket markup ID
38
     * @param pageClass  the class of the page to link to
39
     * @param parameters the page parameters for the link
40
     * @param linkText   the text to display for the link
41
     */
42
    public ItemListElement(String markupId, Class<? extends WebPage> pageClass, final PageParameters parameters, String linkText) {
43
        this(markupId, pageClass, parameters, linkText, null);
×
44
    }
×
45

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