/** * Sets the alternate text of the image for user agents that can't render the * image. * * @param altText the alternate text to set to */ public void setAltText(String altText) { state.getImageElement(this).setAlt(altText); }
@Override public ImageBuilder alt(String alt) { assertCanAddAttribute().setAlt(alt); return this; }
public void setAlt(String alt) { this.alt = alt; this.imgElement.setAlt(alt); }
public void setAlt(String alt) { this.alt = alt; this.imgElement.setAlt(alt); }
@Override public ImageBuilder alt(String alt) { assertCanAddAttribute().setAlt(alt); return this; }
@Override public ImageBuilder alt(String alt) { assertCanAddAttribute().setAlt(alt); return this; }
/** * Sets the alternate text of the image for user agents that can't render the * image. * * @param altText the alternate text to set to */ public void setAltText(String altText) { state.getImageElement(this).setAlt(altText); }
/** * Sets the alternate text of the image for user agents that can't render the * image. * * @param altText the alternate text to set to */ public void setAltText(String altText) { state.getImageElement(this).setAlt(altText); }
@Override protected boolean addTreeSpacer(UIDL rowUidl) { if (cellShowsTreeHierarchy(getElement().getChildCount() - 1)) { Element container = (Element) getElement().getLastChild().getChild(0); if (rowUidl.hasAttribute("icon")) { // icons are in first content cell in TreeTable ImageElement icon = Document.get().createImageElement(); icon.setClassName("v-icon"); icon.setAlt("icon"); icon.setSrc(client.translateVaadinUri(rowUidl.getStringAttribute("icon"))); container.insertFirst(icon); } String classname = "v-treetable-treespacer-patched"; if (rowUidl.getBooleanAttribute("ca")) { canHaveChildren = true; open = rowUidl.getBooleanAttribute("open"); classname += open ? " v-treetable-node-open" : " v-treetable-node-closed"; classname += open ? " icon-arrow1_s" : " icon-arrow1_e"; } treeSpacer = Document.get().createDivElement(); treeSpacer.getStyle().setDisplay(Display.INLINE_BLOCK); treeSpacer.setClassName(classname); container.insertAfter(treeSpacer, container.getFirstChild()); depth = rowUidl.hasAttribute("depth") ? rowUidl.getIntAttribute("depth") : 0; setIndent(); isTreeCellAdded = true; return true; } return false; }