本文整理汇总了C++中HTMLTableElement::setTHead方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLTableElement::setTHead方法的具体用法?C++ HTMLTableElement::setTHead怎么用?C++ HTMLTableElement::setTHead使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTableElement
的用法示例。
在下文中一共展示了HTMLTableElement::setTHead方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: putValueProperty
void JSHTMLTableElement::putValueProperty(ExecState* exec, int token, JSValue* value)
{
switch (token) {
case CaptionAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
ExceptionCode ec = 0;
imp->setCaption(toHTMLTableCaptionElement(value), ec);
setDOMException(exec, ec);
break;
}
case THeadAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
ExceptionCode ec = 0;
imp->setTHead(toHTMLTableSectionElement(value), ec);
setDOMException(exec, ec);
break;
}
case TFootAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
ExceptionCode ec = 0;
imp->setTFoot(toHTMLTableSectionElement(value), ec);
setDOMException(exec, ec);
break;
}
case AlignAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setAlign(valueToStringWithNullCheck(exec, value));
break;
}
case BgColorAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setBgColor(valueToStringWithNullCheck(exec, value));
break;
}
case BorderAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setBorder(valueToStringWithNullCheck(exec, value));
break;
}
case CellPaddingAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setCellPadding(valueToStringWithNullCheck(exec, value));
break;
}
case CellSpacingAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setCellSpacing(valueToStringWithNullCheck(exec, value));
break;
}
case FrameAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setFrame(valueToStringWithNullCheck(exec, value));
break;
}
case RulesAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setRules(valueToStringWithNullCheck(exec, value));
break;
}
case SummaryAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setSummary(valueToStringWithNullCheck(exec, value));
break;
}
case WidthAttrNum: {
HTMLTableElement* imp = static_cast<HTMLTableElement*>(impl());
imp->setWidth(valueToStringWithNullCheck(exec, value));
break;
}
}
}