private HtmlImage findReferencingImage() { final HtmlPage page = getHtmlPageOrNull(); String name = getNameAttribute(); if (null != page && StringUtils.isNotBlank(name)) { name = "#" + name.trim(); for (HtmlElement elem : page.getDocumentElement().getElementsByTagName("img")) { final HtmlImage image = (HtmlImage) elem; if (name.equals(image.getUseMapAttribute())) { return image; } } } return null; } }
private HtmlImage findReferencingImage() { final HtmlPage page = getHtmlPageOrNull(); String name = getNameAttribute(); if (null != page && StringUtils.isNotBlank(name)) { name = "#" + name.trim(); for (HtmlElement elem : page.getDocumentElement().getElementsByTagName("img")) { final HtmlImage image = (HtmlImage) elem; if (name.equals(image.getUseMapAttribute())) { return image; } } } return null; } }
if (getUseMapAttribute() != ATTRIBUTE_NOT_DEFINED) { final String mapName = getUseMapAttribute().substring(1); final HtmlElement doc = ((HtmlPage) getPage()).getDocumentElement(); final HtmlMap map = doc.getOneHtmlElementByAttribute("map", "name", mapName);
if (getUseMapAttribute() != ATTRIBUTE_NOT_DEFINED) { final String mapName = getUseMapAttribute().substring(1); final HtmlElement doc = ((HtmlPage) getPage()).getDocumentElement(); final HtmlMap map = doc.getOneHtmlElementByAttribute("map", "name", mapName);
if (getUseMapAttribute() != ATTRIBUTE_NOT_DEFINED) { final String mapName = getUseMapAttribute().substring(1); final HtmlElement doc = ((HtmlPage) getPage()).getDocumentElement(); final HtmlMap map = doc.getOneHtmlElementByAttribute("map", "name", mapName);
if (getUseMapAttribute() != ATTRIBUTE_NOT_DEFINED) { final String mapName = getUseMapAttribute().substring(1); final HtmlElement doc = ((HtmlPage) getPage()).getDocumentElement(); final HtmlMap map = doc.getOneHtmlElementByAttribute("map", "name", mapName);
if (getUseMapAttribute() != ATTRIBUTE_NOT_DEFINED) { final String mapName = getUseMapAttribute().substring(1); final HtmlElement doc = ((HtmlPage) getPage()).getDocumentElement(); final HtmlMap map = doc.getOneHtmlElementByAttribute("map", "name", mapName);