Package io.conducive.client.ui.widgets.html

Examples of io.conducive.client.ui.widgets.html.Span


     *
     * @param tooltip
     * @return
     */
    public HTMLElement tooltip(String tooltip) {
        Span outer = new Span();
        outer.getElement().setAttribute("data-tooltip", "");
        outer.getElement().setTitle(tooltip);

        // it's unlikely that this will be the case, since most of the time a tooltip will be configured while building
        if (getElement().hasParentElement()) {
            getElement().getParentElement().replaceChild(outer.getElement(), getElement());
        }
        outer.wrap(this);
        // we have to return outer
        return outer;
    }
View Full Code Here

TOP

Related Classes of io.conducive.client.ui.widgets.html.Span

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.