/** * 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()); } }
/** * @see org.apache.wicket.Component#isEnabled() */ @Override public boolean isEnabled() { // If we're auto-enabling if (getAutoEnable()) { // the link is enabled if this link doesn't link to the current page return !linksTo(getPage()); } return super.isEnabled(); }
@Override public String getObject() { return "#" + getMarkupId(); } }
@Override public Class<? extends Page> getPageIdentity() { return oldLink.getPageClass(); } }
/** * THIS METHOD IS NOT PART OF THE WICKET API. DO NOT ATTEMPT TO OVERRIDE OR CALL IT. * * Called when a link is clicked. The implementation of this method is currently to simply call * onClick(), but this may be augmented in the future. */ @Override public void onRequest() { // Invoke subclass handler onClick(); }
/** * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // Web page closes window using javascript code in PopupCloseLink$ClosePopupPage.html setResponsePage(ClosePopupPage.class); } }
/** * Retrieves the class of page this link links to. * * @return page of class */ public Class<? extends Page> getPageClass() { return pageLink.getPageIdentity(); }
/** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(ILinkListener.INTERFACE); }
/** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(ILinkListener.INTERFACE); }
/** * Sets the link's body model * * @param bodyModel * @return <code>this</code> for method chaining */ public AbstractLink setBody(final IModel<?> bodyModel) { this.bodyModel = wrap(bodyModel); return this; }
/** * Gets model object * * @return model object */ @SuppressWarnings("unchecked") public final T getModelObject() { return (T)getDefaultModelObject(); }
/** * Helper methods that both checks whether the link is enabled and whether the action ENABLE is * allowed. * * @return whether the link should be rendered as enabled */ protected final boolean isLinkEnabled() { return isEnabledInHierarchy(); }
/** * @see org.apache.wicket.Component#isEnabled() */ public boolean isEnabled() { // If we're auto-enabling if (getAutoEnable()) { // the link is enabled if this link doesn't link to the current page return !linksTo(getPage()); } return super.isEnabled(); }
/** * 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()); } }
/** * THIS METHOD IS NOT PART OF THE WICKET API. DO NOT ATTEMPT TO OVERRIDE OR CALL IT. * * Called when a link is clicked. The implementation of this method is currently to simply call * onClick(), but this may be augmented in the future. */ @Override public void onRequest() { // Invoke subclass handler onClick(); }
/** * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // Web page closes window using javascript code in PopupCloseLink$ClosePopupPage.html setResponsePage(ClosePopupPage.class); } }
@Override public String getObject() { return "#" + getMarkupId(); } }
/** * Sets the link's body model * * @param bodyModel * @return <code>this</code> for method chaining */ public AbstractLink setBody(final IModel<?> bodyModel) { this.bodyModel = wrap(bodyModel); return this; }
/** * @see org.apache.wicket.Component#isEnabled() */ @Override public boolean isEnabled() { // If we're auto-enabling if (getAutoEnable()) { // the link is enabled if this link doesn't link to the current page return !linksTo(getPage()); } return super.isEnabled(); }
/** * @see org.apache.wicket.Component#isEnabled() */ @Override public boolean isEnabled() { // If we're auto-enabling if (getAutoEnable()) { // the link is enabled if this link doesn't link to the current page return !linksTo(getPage()); } return super.isEnabled(); }