final String mode = uidl.getStringAttribute("mode");
if (mode == null || "text".equals(mode)) {
setText(uidl.getChildString(0));
} else if ("pre".equals(mode)) {
PreElement preElement = Document.get().createPreElement();
preElement.setInnerText(uidl.getChildUIDL(0).getChildString(0));
// clear existing content
setHTML("");
// add preformatted text to dom
getElement().appendChild(preElement);
} else if ("uidl".equals(mode)) {