make setAfter/BeforeDisabledLink return "this" for chaining
-----------------------------------------------------------

                 Key: WICKET-1427
                 URL: https://issues.apache.org/jira/browse/WICKET-1427
             Project: Wicket
          Issue Type: Improvement
    Affects Versions: 1.3.2
            Reporter: Sebastiaan van Erk
            Priority: Minor


Is it possible to make setAfterDisabledLink on AbstractLink return "this" so 
that chaining is possible. Now I have somthing similar to the following:

    fragment.add(new BookmarkablePageLink("season2Link", ProgramsPage.class, 
new PageParameters("0=2008")) {
        {
            setAfterDisabledLink("");
            setBeforeDisabledLink("");
        }

        @Override
        public boolean isEnabled() {
            return "2008".equals(season);
        }
    });

But it would be nice if I could do:

    fragment.add(new BookmarkablePageLink("season2Link", ProgramsPage.class, 
new PageParameters("0=2008")) {
        @Override
        public boolean isEnabled() {
            return "2008".equals(season);
        }
    }.setBeforeDisabledLink("").setAfterDisabledLink("")); 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to