Example usage for com.google.gwt.dom.builder.shared HtmlElementBuilderBase title

List of usage examples for com.google.gwt.dom.builder.shared HtmlElementBuilderBase title

Introduction

In this page you can find the example usage for com.google.gwt.dom.builder.shared HtmlElementBuilderBase title.

Prototype

@Override
    public R title(String title) 

Source Link

Usage

From source file:cc.alcina.framework.gwt.client.cell.FunctionalCell.java

License:Apache License

@Override
public void render(Context context, FunctionalTuple value, SafeHtmlBuilder sb) {
    HtmlBuilderFactory factory = HtmlBuilderFactory.get();
    HtmlElementBuilderBase builderBase = null;
    if (value.href != null) {
        HtmlAnchorBuilder builder = factory.createAnchorBuilder();
        builderBase = builder;//  ww  w .  j  a v a  2 s.  c  o  m
        builder.href(value.href);
    } else if (value.place != null) {
        HtmlAnchorBuilder builder = factory.createAnchorBuilder();
        builderBase = builder;
        builder.href("#" + RegistryHistoryMapper.get().getToken(value.place));
    } else {
        HtmlSpanBuilder builder = factory.createSpanBuilder();
        builderBase = builder;
    }
    if (value.title != null) {
        builderBase.title(value.title);
    }
    builderBase.text(value.text);
    sb.append(builderBase.asSafeHtml());
}