Example usage for com.google.gwt.uibinder.rebind UiBinderWriter genStringPropertySet

List of usage examples for com.google.gwt.uibinder.rebind UiBinderWriter genStringPropertySet

Introduction

In this page you can find the example usage for com.google.gwt.uibinder.rebind UiBinderWriter genStringPropertySet.

Prototype

public void genStringPropertySet(String fieldName, String propName, String value) 

Source Link

Document

Generates the code to set a string property.

Usage

From source file:com.jhickman.web.gwt.gxtuibinder.elementparsers.HtmlParser.java

License:Apache License

@Override
public void parse(XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer)
        throws UnableToCompleteException {

    HtmlInterpreter interpreter = HtmlInterpreter.newInterpreterForUiObject(writer, fieldName);

    String html = elem.consumeInnerHtml(interpreter);

    if (html.trim().length() > 0) {
        writer.genStringPropertySet(fieldName, "Html", html);
    }/* w ww . j a v  a 2  s . c o  m*/
}