public void setExternal(boolean value) { this.external = value; if (value) { a.setAttribute("rel", "external"); a.setAttribute("data-rel", "external"); } else { a.removeAttribute("rel"); a.removeAttribute("data-rel"); } }
public void setExternal(boolean value) { this.external = value; if (value) { a.setAttribute("rel", "external"); a.setAttribute("data-rel", "external"); } else { a.removeAttribute("rel"); a.removeAttribute("data-rel"); } }
public void setExternal(boolean value) { this.external = value; if (value) { a.setAttribute("rel", "external"); a.setAttribute("data-rel", "external"); } else { a.removeAttribute("rel"); a.removeAttribute("data-rel"); } }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
private static AnchorElement createLinkElement(String filename, String href) { AnchorElement a = Document.get().createAnchorElement(); a.setInnerText(""); a.setHref(href); a.setAttribute("download", filename); a.getStyle().setDisplay(Style.Display.NONE); return a; }
public CarouselControl() { // Anchor this.anchorElem = Document.get().createAnchorElement(); setElement(anchorElem); setStyleName(Styles.CAROUSEL_CONTROL); anchorElem.setAttribute(Attributes.ROLE, BUTTON); // Icon icon = new Icon(); add(icon); // Span (SR_ONLY) span = new Span(); span.setStyleName(Styles.SR_ONLY); add(span); }
public CarouselControl() { // Anchor this.anchorElem = Document.get().createAnchorElement(); setElement(anchorElem); setStyleName(Styles.CAROUSEL_CONTROL); anchorElem.setAttribute(Attributes.ROLE, BUTTON); // Icon icon = new Icon(); add(icon); // Span (SR_ONLY) span = new Span(); span.setStyleName(Styles.SR_ONLY); add(span); }
a.getStyle().setCursor(Style.Cursor.POINTER); a.setClassName("dropdown-toggle"); a.setAttribute("role", "button"); a.setAttribute("data-toggle", "dropdown"); a.setInnerHTML(o.getLabel() + " <span class=\"caret\"></span>");