Source Code (Use browser search to find items of interest.)
Class Index
kdelibs'HTMLOptGroupElement (./kdelibs/khtml/dom/html_form.h:749)
class HTMLOptGroupElement : public HTMLElement
{
public:
HTMLOptGroupElement();
HTMLOptGroupElement(const HTMLOptGroupElement &other);
HTMLOptGroupElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLOptGroupElement(HTMLOptGroupElementImpl *impl);
public:
HTMLOptGroupElement & operator = (const HTMLOptGroupElement &other);
HTMLOptGroupElement & operator = (const Node &other);
~HTMLOptGroupElement();
/**
* The control is unavailable in this context. See the <a
* href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
* disabled attribute definition </a> in HTML 4.0.
*
*/
bool disabled() const;
/**
* see @ref disabled
*/
void setDisabled( bool );
/**
* Assigns a label to this option group. See the <a
* href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-label-OPTGROUP">
* label attribute definition </a> in HTML 4.0.
*
*/
DOMString label() const;
/**
* see @ref label
*/
void setLabel( const DOMString & );
};
// --------------------------------------------------------------------------
kdelibs'HTMLOptGroupElement::HTMLOptGroupElement() (./kdelibs/khtml/dom/html_form.cpp:709)
HTMLOptGroupElement::HTMLOptGroupElement() : HTMLElement()
{
}
kdelibs'HTMLOptGroupElement::HTMLOptGroupElement() (./kdelibs/khtml/dom/html_form.cpp:713)
HTMLOptGroupElement::HTMLOptGroupElement(const HTMLOptGroupElement &other) : HTMLElement(other)
{
}
kdelibs'HTMLOptGroupElement::HTMLOptGroupElement() (./kdelibs/khtml/dom/html_form.cpp:717)
HTMLOptGroupElement::HTMLOptGroupElement(HTMLOptGroupElementImpl *impl) : HTMLElement(impl)
{
}
kdelibs'HTMLOptGroupElement::~HTMLOptGroupElement() (./kdelibs/khtml/dom/html_form.cpp:738)
HTMLOptGroupElement::~HTMLOptGroupElement()
{
}
kdelibs'HTMLOptGroupElement::disabled() (./kdelibs/khtml/dom/html_form.cpp:742)
bool HTMLOptGroupElement::disabled() const
{
if(!impl) return 0;
return !((ElementImpl *)impl)->getAttribute(ATTR_DISABLED).isNull();
}
kdelibs'HTMLOptGroupElement::setDisabled() (./kdelibs/khtml/dom/html_form.cpp:748)
void HTMLOptGroupElement::setDisabled( bool _disabled )
{
if(impl)
{
DOMString str;
if( _disabled )
str = "";
((ElementImpl *)impl)->setAttribute(ATTR_DISABLED, str);
}
}
kdelibs'HTMLOptGroupElement::label() (./kdelibs/khtml/dom/html_form.cpp:759)
DOMString HTMLOptGroupElement::label() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_LABEL);
}
kdelibs'HTMLOptGroupElement::setLabel() (./kdelibs/khtml/dom/html_form.cpp:765)
void HTMLOptGroupElement::setLabel( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_LABEL, value);
}
// --------------------------------------------------------------------------