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

knowledgepixels / nanodash / 17518110100

06 Sep 2025 06:34PM UTC coverage: 11.955% (-0.1%) from 12.094%
17518110100

push

github

tkuhn
Undo custom AjaxLazyLoadPanel to fix paging navigation

334 of 3876 branches covered (8.62%)

Branch coverage included in aggregate %.

958 of 6931 relevant lines covered (13.82%)

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

3
import java.util.function.Function;
4

5
import org.apache.wicket.Component;
6

7
public abstract class MethodResultComponent<T,R> extends ResultComponent {
8

9
    private final T obj;
10
    private final transient Function<T,Boolean> readyFunction;
11
    private final transient Function<T,R> resultFunction;
12

13
    public MethodResultComponent(String id, T obj, Function<T,Boolean> readyFunction, Function<T,R> resultFunction) {
14
        super(id);
×
15
        setOutputMarkupId(true);
×
16
        this.obj = obj;
×
17
        this.readyFunction = readyFunction;
×
18
        this.resultFunction = resultFunction;
×
19
    }
×
20

21
    /**
22
     * {@inheritDoc}
23
     */
24
    @Override
25
    protected boolean isContentReady() {
26
        return readyFunction.apply(obj);
×
27
    }
28

29
    /**
30
     * {@inheritDoc}
31
     */
32
    @Override
33
    public Component getLazyLoadComponent(String markupId) {
34
        R result = resultFunction.apply(obj);
×
35
        return getResultComponent(markupId, result);
×
36
    }
37

38
    // TODO Use lambda instead of abstract method?
39
    public abstract Component getResultComponent(String markupId, R result);
40

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