/** * Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() * delayed linking interface. This call will normally cause the destination page to be created. * * @see org.apache.wicket.markup.html.link.Link#onClick() */ public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPage()); } }
/** * Retrieves the class of page this link links to. * * @return page of class */ public Class<? extends Page> getPageClass() { return pageLink.getPageIdentity(); }
/** * Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() * delayed linking interface. This call will normally cause the destination page to be created. * * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { setResponsePage(pageLink.getPage()); }
/** * Returns true if the given page is of the same class as the (delayed) destination of this page * link. * * @see org.apache.wicket.markup.html.link.Link#linksTo(org.apache.wicket.Page) */ public boolean linksTo(final Page page) { return page.getClass() == pageLink.getPageIdentity(); }
/** * Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() * delayed linking interface. This call will normally cause the destination page to be created. * * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPage()); } }
/** * Returns true if the given page is of the same class as the (delayed) destination of this page * link. * * @see org.apache.wicket.markup.html.link.Link#linksTo(org.apache.wicket.Page) */ @Override public boolean linksTo(final Page page) { return page.getClass() == pageLink.getPageIdentity(); }
/** * @see org.apache.wicket.markup.html.link.ILinkListener#onLinkClicked() */ public final void onLinkClicked() { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(pageMapName); setResponsePage(pageLink.getPage()); }
/** * @param id * @param pageLink */ public SecurePageLink(String id, IPageLink pageLink) { super(id); this.pageLink = pageLink; setSecurityCheck(new LinkSecurityCheck(this, pageLink.getPageIdentity())); }
/** * @see org.apache.wicket.markup.html.link.ILinkListener#onLinkClicked() */ public final void onLinkClicked() { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(pageMapName); setResponsePage(pageLink.getPage()); }
iPageLinkField.setAccessible(true); IPageLink iPageLink = (IPageLink)iPageLinkField.get(pageLink); return isEqual(expectedPageClass, iPageLink.getPageIdentity());
/** * @see org.apache.wicket.markup.html.link.ILinkListener#onLinkClicked() */ public final void onLinkClicked() { RequestParameters parameters = RequestCycle.get().getRequest().getRequestParameters(); String oldPageMapName = parameters.getPageMapName(); try { if (pageMapName != null) { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(pageMapName); } setResponsePage(pageLink.getPage()); } finally { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(oldPageMapName); } }
iPageLinkField.setAccessible(true); IPageLink iPageLink = (IPageLink)iPageLinkField.get(pageLink); return isEqual(expectedPageClass, iPageLink.getPageIdentity());
/** * @see org.apache.wicket.markup.html.link.ILinkListener#onLinkClicked() */ public final void onLinkClicked() { RequestParameters parameters = RequestCycle.get().getRequest().getRequestParameters(); String oldPageMapName = parameters.getPageMapName(); try { if (pageMapName != null) { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(pageMapName); } setResponsePage(pageLink.getPage()); } finally { RequestCycle.get().getRequest().getRequestParameters().setPageMapName(oldPageMapName); } }