Example usage for com.google.gwt.user.client.ui RenderableStamper stamp

List of usage examples for com.google.gwt.user.client.ui RenderableStamper stamp

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui RenderableStamper stamp.

Prototype

public <T extends HtmlElementBuilderBase<?>> T stamp(T elementBuilder) 

Source Link

Document

Stamps an HTML element in such a way that it can be later found in the DOM tree.

Usage

From source file:com.google.gwt.uibinder.test.client.SimpleRenderable.java

License:Apache License

@Override
public SafeHtml render(RenderableStamper stamper) {
    HtmlBuilderFactory factory = HtmlBuilderFactory.get();
    String realText = text;//from  w w w  . j  a  v  a 2  s. c  o  m
    text = "[string built]" + text;
    HtmlElementBuilderBase<?> builder = (HtmlElementBuilderBase<?>) build(factory);
    text = realText;
    return stamper.stamp(builder.asSafeHtml());
}