org.kde.koala
Class HTMLElement

java.lang.Object
  extended by org.kde.koala.Node
      extended by org.kde.koala.Element
          extended by org.kde.koala.HTMLElement
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
HTMLAnchorElement, HTMLAppletElement, HTMLAreaElement, HTMLBaseElement, HTMLBaseFontElement, HTMLBlockquoteElement, HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLDirectoryElement, HTMLDivElement, HTMLDListElement, HTMLFieldSetElement, HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement, HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement, HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLIsIndexElement, HTMLLabelElement, HTMLLegendElement, HTMLLIElement, HTMLLinkElement, HTMLMapElement, HTMLMenuElement, HTMLMetaElement, HTMLModElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement, HTMLOptionElement, HTMLParagraphElement, HTMLParamElement, HTMLPreElement, HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement

public class HTMLElement
extends Element

All HTML element interfaces derive from this class. Elements that only expose the HTML core attributes are represented by the base HTMLElement interface. These elements are as follows: \li HEAD

  • special
  • : SUB, SUP, SPAN, BDO
  • font
  • : TT, I, B, U, S, STRIKE, BIG, SMALL
  • phrase
  • : EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR
  • list
  • : DD, DT \li NOFRAMES, NOSCRIPT \li ADDRESS, CENTER Note: The style attribute for this interface is reserved for future usage.


    Constructor Summary
      HTMLElement()
               
    protected HTMLElement(java.lang.Class dummy)
               
      HTMLElement(HTMLElement other)
               
      HTMLElement(Node other)
               
     
    Method Summary
     void addCSSProperty(java.lang.String property, java.lang.String value)
               
     HTMLCollection all()
              Retrieves a collection of all nodes that descend from this node.
    protected  void assignOther(Node other, int elementId)
               
     HTMLCollection children()
              Retrieves a collection of nodes that are direct descendants of this node.
     java.lang.String className()
              The class attribute of the element.
     java.lang.String dir()
              Specifies the base direction of directionally neutral text and the directionality of tables.
     java.lang.String id()
              The element's identifier.
     java.lang.String innerHTML()
              The HTML code contained in this element.
     java.lang.String innerText()
              The text contained in this element.
     java.lang.String lang()
              Language code defined in RFC 1766.
     void removeCSSProperty(java.lang.String property)
               
     void setClassName(java.lang.String arg1)
              see className
     void setDir(java.lang.String arg1)
              see dir
     void setId(java.lang.String arg1)
              see id
     void setInnerHTML(java.lang.String html)
              Set the HTML content of this node.
     void setInnerText(java.lang.String text)
              Set the text content of this node.
     void setLang(java.lang.String arg1)
              see lang
     void setTitle(java.lang.String arg1)
              see title
     java.lang.String title()
              The element's advisory title.
     
    Methods inherited from class org.kde.koala.Element
    contentEditable, form, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, isHTMLElement, khtmlMalformedPrefix, khtmlMalformedQualifiedName, khtmlValidAttrName, khtmlValidPrefix, khtmlValidQualifiedName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentEditable, style, tagName
     
    Methods inherited from class org.kde.koala.Node
    addEventListener, appendChild, applyChanges, attributes, childNodes, cloneNode, dispatchEvent, elementId, firstChild, getRect, hasAttributes, hasChildNodes, index, insertBefore, isNull, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, op_equals, op_not_equals, ownerDocument, parentNode, prefix, previousSibling, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    HTMLElement

    protected HTMLElement(java.lang.Class dummy)

    HTMLElement

    public HTMLElement()

    HTMLElement

    public HTMLElement(HTMLElement other)

    HTMLElement

    public HTMLElement(Node other)
    Method Detail

    id

    public java.lang.String id()
    The element's identifier. See the id attribute definition in HTML 4.0.


    setId

    public void setId(java.lang.String arg1)
    see id


    title

    public java.lang.String title()
    The element's advisory title. See the title attribute definition in HTML 4.0.


    setTitle

    public void setTitle(java.lang.String arg1)
    see title


    lang

    public java.lang.String lang()
    Language code defined in RFC 1766. See the lang attribute definition in HTML 4.0.


    setLang

    public void setLang(java.lang.String arg1)
    see lang


    dir

    public java.lang.String dir()
    Specifies the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.0.


    setDir

    public void setDir(java.lang.String arg1)
    see dir


    className

    public java.lang.String className()
    The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.0.


    setClassName

    public void setClassName(java.lang.String arg1)
    see className


    innerHTML

    public java.lang.String innerHTML()
    The HTML code contained in this element. This function is not part of the DOM specifications as defined by the w3c.


    setInnerHTML

    public void setInnerHTML(java.lang.String html)
    Set the HTML content of this node.


    innerText

    public java.lang.String innerText()
    The text contained in this element. This function is not part of the DOM specifications as defined by the w3c.


    setInnerText

    public void setInnerText(java.lang.String text)
    Set the text content of this node.


    children

    public HTMLCollection children()
    Retrieves a collection of nodes that are direct descendants of this node. IE-specific extension.


    all

    public HTMLCollection all()
    Retrieves a collection of all nodes that descend from this node. IE-specific extension.


    removeCSSProperty

    public void removeCSSProperty(java.lang.String property)

    addCSSProperty

    public void addCSSProperty(java.lang.String property,
                               java.lang.String value)

    assignOther

    protected void assignOther(Node other,
                               int elementId)