Class HTMLElementImpl

    • Constructor Detail

      • HTMLElementImpl

        public HTMLElementImpl​(java.lang.String name,
                               boolean noStyleSheet)
      • HTMLElementImpl

        public HTMLElementImpl​(java.lang.String name)
    • Method Detail

      • forgetLocalStyle

        protected final void forgetLocalStyle()
      • forgetStyle

        protected final void forgetStyle​(boolean deep)
      • getCurrentStyle

        public AbstractCSS2Properties getCurrentStyle()
        Gets the style object associated with the element. It may return null only if the type of element does not handle stylesheets.
      • getStyle

        public AbstractCSS2Properties getStyle()
        Gets the local style object associated with the element. The properties object returned only includes properties from the local style attribute. It may return null only if the type of element does not handle stylesheets.
      • setStyle

        public void setStyle​(java.lang.Object value)
      • setCurrentStyle

        public void setCurrentStyle​(java.lang.Object value)
      • getClassName

        public java.lang.String getClassName()
        Description copied from interface: HTMLElement
        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.01.
        Specified by:
        getClassName in interface HTMLElement
      • setClassName

        public void setClassName​(java.lang.String className)
        Description copied from interface: HTMLElement
        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.01.
        Specified by:
        setClassName in interface HTMLElement
      • getCharset

        public java.lang.String getCharset()
      • setCharset

        public void setCharset​(java.lang.String charset)
      • warn

        public void warn​(java.lang.String message,
                         java.lang.Throwable err)
        Specified by:
        warn in interface ModelNode
        Overrides:
        warn in class NodeImpl
      • warn

        public void warn​(java.lang.String message)
        Overrides:
        warn in class NodeImpl
      • getAttributeAsInt

        protected int getAttributeAsInt​(java.lang.String name,
                                        int defaultValue)
      • getAttributeAsBoolean

        public boolean getAttributeAsBoolean​(java.lang.String name)
      • assignAttributeField

        protected void assignAttributeField​(java.lang.String normalName,
                                            java.lang.String value)
        Overrides:
        assignAttributeField in class ElementImpl
      • getCssInputSourceForDecl

        protected final InputSource getCssInputSourceForDecl​(java.lang.String text)
      • addStyleSheetDeclarations

        protected final AbstractCSS2Properties addStyleSheetDeclarations​(AbstractCSS2Properties style,
                                                                         java.util.Set pseudoNames)
        Adds style sheet declarations applicable to this element. A properties object is created if necessary when the one passed is null.
        Parameters:
        style -
      • setMouseOver

        public void setMouseOver​(boolean mouseOver)
      • getPseudoNames

        public java.util.Set getPseudoNames()
        Gets the pseudo-element lowercase names currently applicable to this element. Method must return null if there are no such pseudo-elements.
      • findStyleDeclarations

        protected final java.util.Collection findStyleDeclarations​(java.lang.String elementName,
                                                                   java.lang.String id,
                                                                   java.lang.String className,
                                                                   java.util.Set pseudoNames)
      • informInvalidAttibute

        public void informInvalidAttibute​(java.lang.String normalName)
      • getFormInputs

        protected FormInput[] getFormInputs()
        Gets form input due to the current element. It should return null except when the element is a form input element.
      • getAncestorWithClass

        public HTMLElementImpl getAncestorWithClass​(java.lang.String elementTL,
                                                    java.lang.String classTL)
        Get an ancestor that matches the element tag name given and the style class given.
        Parameters:
        elementTL - An tag name in lowercase or an asterisk (*).
        classTL - A class name in lowercase.
      • getParentWithClass

        public HTMLElementImpl getParentWithClass​(java.lang.String elementTL,
                                                  java.lang.String classTL)
      • getPreceedingSiblingElement

        public HTMLElementImpl getPreceedingSiblingElement()
      • getPreceedingSiblingWithClass

        public HTMLElementImpl getPreceedingSiblingWithClass​(java.lang.String elementTL,
                                                             java.lang.String classTL)
      • getAncestorWithId

        public HTMLElementImpl getAncestorWithId​(java.lang.String elementTL,
                                                 java.lang.String idTL)
      • getParentWithId

        public HTMLElementImpl getParentWithId​(java.lang.String elementTL,
                                               java.lang.String idTL)
      • getPreceedingSiblingWithId

        public HTMLElementImpl getPreceedingSiblingWithId​(java.lang.String elementTL,
                                                          java.lang.String idTL)
      • getAncestor

        public HTMLElementImpl getAncestor​(java.lang.String elementTL)
      • getParent

        public HTMLElementImpl getParent​(java.lang.String elementTL)
      • getPreceedingSibling

        public HTMLElementImpl getPreceedingSibling​(java.lang.String elementTL)
      • getAncestorForJavaClass

        protected java.lang.Object getAncestorForJavaClass​(java.lang.Class javaClass)
      • setInnerHTML

        public void setInnerHTML​(java.lang.String newHtml)
      • getOuterHTML

        public java.lang.String getOuterHTML()
      • appendOuterHTMLImpl

        protected void appendOuterHTMLImpl​(java.lang.StringBuffer buffer)
      • getOffsetTop

        public int getOffsetTop()
      • getOffsetLeft

        public int getOffsetLeft()
      • getOffsetWidth

        public int getOffsetWidth()
      • getOffsetHeight

        public int getOffsetHeight()