List of usage examples for com.google.gwt.uibinder.rebind XMLElement consumeBooleanAttribute
public String consumeBooleanAttribute(String name, boolean defaultValue) throws UnableToCompleteException
From source file:com.jhickman.web.gwt.gxtuibinder.elementparsers.menu.CheckMenuItemParser.java
License:Apache License
public void parse(XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException { String checkedValue = elem.consumeBooleanAttribute("checked", false); writer.addStatement("%s.setChecked(%s);", fieldName, checkedValue); }