protected void doPhysicalAttach(Widget child, int beforeIndex) {
boolean needsIndent = (child instanceof Field) || (child instanceof ContentPanel)
|| (child instanceof AdapterMenuItem && ((AdapterMenuItem) child).isNeedsIndent());
XElement div = appearance.createItem(getElement(), child.getElement().getId(), needsIndent);
div.appendChild(child.getElement());
if (child instanceof Component) {
Component c = (Component) child;
if (!c.isEnabled()) {
c.disable();
}