addAttributes(jsonObj, parent);
}
@Override
protected void addAttributes(JSONObject childObj, Widget widget) {
JSONString attributeStringObj;
JSONBoolean attributeBooleanObj;
JSONNumber attributeNumberObj;
JSONValue attributeJsObj = childObj.get("style");
if(attributeJsObj != null && (attributeStringObj = attributeJsObj.isString()) != null)
DOM.setElementAttribute(widget.getElement(), "style", attributeStringObj.stringValue());
attributeJsObj = childObj.get("title");
if(attributeJsObj != null && (attributeStringObj = attributeJsObj.isString()) != null)
DOM.setElementAttribute(widget.getElement(), "title", attributeStringObj.stringValue());
attributeJsObj = childObj.get("className");
if(attributeJsObj != null && (attributeStringObj = attributeJsObj.isString()) != null)
DOM.setElementAttribute(widget.getElement(), "className", attributeStringObj.stringValue());
attributeJsObj = childObj.get(HasVkAnimation.NAME);
if(attributeJsObj != null && (attributeBooleanObj = attributeJsObj.isBoolean()) != null)
((HasVkAnimation)widget).setAnimationEnabled(attributeBooleanObj.booleanValue());
attributeJsObj = childObj.get(HasVkSwitchNumberedWidget.NAME);
if(attributeJsObj != null && (attributeNumberObj = attributeJsObj.isNumber()) != null)
((HasVkSwitchNumberedWidget)widget).showWidget((int)attributeNumberObj.doubleValue());
attributeJsObj = childObj.get(HasVkBeforeSelectionHandler.NAME);