Hi,

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(""));

Regards,
Sebastiaan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to