Example usage for com.google.gwt.uibinder.rebind XMLElement consumeRequiredIntAttribute

List of usage examples for com.google.gwt.uibinder.rebind XMLElement consumeRequiredIntAttribute

Introduction

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

Prototype

public String consumeRequiredIntAttribute(String name) throws UnableToCompleteException 

Source Link

Document

Convenience method for parsing the named required attribute as a integer value or reference.

Usage

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

License:Apache License

@Override
public void parse(XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer)
        throws UnableToCompleteException {
    String columns = elem.consumeRequiredIntAttribute("columns");
    writer.setFieldInitializerAsConstructor(fieldName, type, columns);
}