addStyleSheetDeclarations
protected final AbstractCSS2Properties addStyleSheetDeclarations(AbstractCSS2Properties style,
Set pseudoNames)
Adds style sheet declarations applicable
to this element.
A properties object is created if necessary
when the one passed is null
.
appendOuterHTMLImpl
protected void appendOuterHTMLImpl(StringBuffer buffer)
findStyleDeclarations
protected final Collection findStyleDeclarations(String elementName,
String id,
String className,
Set pseudoNames)
forgetLocalStyle
protected final void forgetLocalStyle()
forgetStyle
protected final void forgetStyle(boolean deep)
getAncestorForJavaClass
protected Object getAncestorForJavaClass(Class javaClass)
getAncestorWithClass
public HTMLElementImpl getAncestorWithClass(String elementTL,
String classTL)
Get an ancestor that matches the element tag name given and the
style class given.
elementTL
- An tag name in lowercase or an asterisk (*).classTL
- A class name in lowercase.
getAncestorWithId
public HTMLElementImpl getAncestorWithId(String elementTL,
String idTL)
getAttributeAsBoolean
public boolean getAttributeAsBoolean(String name)
getAttributeAsInt
protected int getAttributeAsInt(String name,
int defaultValue)
getCharset
public String getCharset()
getClassName
public String getClassName()
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.
- getClassName in interface HTMLElement
getCssInputSourceForDecl
protected final InputSource getCssInputSourceForDecl(String text)
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.
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.
getOffsetHeight
public int getOffsetHeight()
getOffsetLeft
public int getOffsetLeft()
getOffsetTop
public int getOffsetTop()
getOffsetWidth
public int getOffsetWidth()
getOuterHTML
public String getOuterHTML()
getPseudoNames
public Set getPseudoNames()
Gets the pseudo-element lowercase names currently
applicable to this element. Method must return
null
if there are no such
pseudo-elements.
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.
informInvalidAttibute
public void informInvalidAttibute(String normalName)
setCharset
public void setCharset(String charset)
setClassName
public void setClassName(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.01.
- setClassName in interface HTMLElement
setCurrentStyle
public void setCurrentStyle(Object value)
setInnerHTML
public void setInnerHTML(String newHtml)
setMouseOver
public void setMouseOver(boolean mouseOver)
setStyle
public void setStyle(Object value)
warn
public void warn(String message)
- warn in interface NodeImpl