Example usage for com.google.gwt.dom.client SpanElement setTitle

List of usage examples for com.google.gwt.dom.client SpanElement setTitle

Introduction

In this page you can find the example usage for com.google.gwt.dom.client SpanElement setTitle.

Prototype

@Override
    public void setTitle(String title) 

Source Link

Usage

From source file:org.uberfire.client.views.pfly.listbar.PartListDropdown.java

License:Apache License

private SpanElement buildTitleTextWidget(final String title, final IsWidget titleDecoration) {
    final SpanElement spanElement = Document.get().createSpanElement();
    spanElement.addClassName("uf-listbar-panel-header-title-text");
    spanElement.addClassName(CSSLocatorsUtils.buildLocator("qe-list-bar-header", title));
    final String titleWidget = (titleDecoration instanceof Image) ? titleDecoration.toString() : "";
    spanElement.setInnerHTML(titleWidget + " " + title.replaceAll(" ", "\u00a0"));
    spanElement.setTitle(title);
    return spanElement;
}