DomElement *WContainerWidget::createDomElement(WApplication *app, bool addChildren) { if (transientImpl_) transientImpl_->addedChildren_.clear(); DomElement *result = WWebWidget::createDomElement(app); if (addChildren) createDomChildren(*result, app); return result; }
DomElement *WGroupBox::createDomElement() { DomElement *result = DomElement::createNew(DomElement::FIELDSET); result->setId(this); DomElement *legend = DomElement::createNew(DomElement::LEGEND); legend->setId(formName() + "l"); legend->setProperty(Wt::PropertyInnerHTML, toUTF8(escapeText(title_.value()))); result->addChild(legend); createDomChildren(*result); updateDom(*result, true); return result; }
DomElement * WContainerWidget::createDomElement() { DomElement *result; result = DomElement::createNew(isInline() ? DomElement::SPAN : DomElement::DIV); result->setId(this); if (addedChildren_) { delete addedChildren_; addedChildren_ = 0; } updateDom(*result, true); createDomChildren(*result); renderOk(); return result; }
void WContainerWidget::getDomChanges(std::vector<DomElement *>& result, WApplication *app) { DomElement *e = DomElement::getForUpdate(this, domElementType()); #ifndef WT_NO_LAYOUT if (!app->session()->renderer().preLearning()) { if (flags_.test(BIT_LAYOUT_NEEDS_RERENDER)) { e->removeAllChildren(firstChildIndex()); createDomChildren(*e, app); flags_.reset(BIT_LAYOUT_NEEDS_RERENDER); flags_.reset(BIT_LAYOUT_NEEDS_UPDATE); } } #endif // WT_NO_LAYOUT updateDomChildren(*e, app); updateDom(*e, false); result.push_back(e); }