/** * @see WicketUtils#getImageUrl(org.apache.wicket.Response, String) */ public String getImageUrl(final String subpath) { return WicketUtils.getImageUrl(getRequestCycle(), subpath); }
/** * @see WicketUtils#getImageUrl(org.apache.wicket.Response, String) */ public String getImageUrl(final String subpath) { return WicketUtils.getImageUrl(getRequestCycle(), subpath); }
/** * @return */ public static ContextImage getInvisibleDummyImage(final String id, final RequestCycle requestCylce) { final ContextImage image = new ContextImage(id, WicketUtils.getImageUrl(requestCylce, WebConstants.IMAGE_SPACER)); image.setVisible(false); return image; }
/** * For the source the URL will be build via buildUrl(); * * @param buf * @param src * @param width If less than zero, than this attribute will be ignored. * @param height If less than zero, than this attribute will be ignored. * @param tooltip If null, than this attribute will be ignored. * @param align If null, than this attribute will be ignored. */ public static void appendImageTag(final RequestCycle requestCycle, final StringBuffer buf, final String src, final String width, final String height, final String tooltip, final HtmlAlignment align) { final HtmlTagBuilder tag = new HtmlTagBuilder(buf, "img"); tag.addAttribute("src", WicketUtils.getImageUrl(requestCycle, src)); addTooltip(tag, tooltip); tag.addAttribute("width", width); tag.addAttribute("height", height); tag.addAttribute("border", "0"); if (align != null) { tag.addAttribute("align", align.getString()); } tag.finishEmptyTag(); }