org.lobobrowser.html.domimpl

Class HTMLLinkElementImpl

Implemented Interfaces:
Element, CSS2PropertiesContext, HTMLElement, HTMLLinkElement, Node, ModelNode, ScriptableDelegate

public class HTMLLinkElementImpl
extends HTMLAbstractUIElement
implements HTMLLinkElement

Field Summary

Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl

attributes

Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl

document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode

Constructor Summary

HTMLLinkElementImpl(String name)

Method Summary

protected RenderState
createRenderState(RenderState prevRenderState)
boolean
getDisabled()
Enables/disables the link.
String
getHref()
The URI [IETF RFC 2396] of the linked resource.
String
getHreflang()
Language code of the linked resource.
String
getMedia()
Designed for use with one or more target media.
String
getRel()
Forward link type.
String
getRev()
Reverse link type.
String
getTarget()
Frame to render the resource in.
String
getType()
Advisory content type.
void
navigate()
protected void
processLink()
void
setDisabled(boolean disabled)
Enables/disables the link.
void
setHref(String href)
The URI [IETF RFC 2396] of the linked resource.
void
setHreflang(String hreflang)
Language code of the linked resource.
void
setMedia(String media)
Designed for use with one or more target media.
void
setRel(String rel)
Forward link type.
void
setRev(String rev)
Reverse link type.
void
setTarget(String target)
Frame to render the resource in.
void
setType(String type)
Advisory content type.
Object
setUserData(String key, Object data, UserDataHandler handler)

Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement

assignAttributeField, blur, focus, getEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup

Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl

addStyleSheetDeclarations, appendInnerHTMLImpl, appendOuterHTMLImpl, assignAttributeField, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getCssInputSourceForDecl, getCurrentStyle, getFormInputs, getInnerHTML, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParentStyle, getStyle, informInvalid, informInvalidAttibute, informLayoutInvalid, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn

Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl

appendInnerTextImpl, assignAttributeField, createSimilarNode, equalAttributes, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getInnerText, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeImpl, setAttributeNS, setAttributeNode, setAttributeNodeNS, setDir, setId, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setInnerText, setLang, setNodeValue, setTitle, toString

Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl

appendChild, cloneNode, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setTextContent, setUINode, setUserData, toString, warn, warn

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

HTMLLinkElementImpl

public HTMLLinkElementImpl(String name)

Method Details

createRenderState

protected RenderState createRenderState(RenderState prevRenderState)
Overrides:
createRenderState in interface HTMLElementImpl

getDisabled

public boolean getDisabled()
Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
Specified by:
getDisabled in interface HTMLLinkElement

getHref

public String getHref()
The URI [IETF RFC 2396] of the linked resource. See the href attribute definition in HTML 4.01.
Specified by:
getHref in interface HTMLLinkElement

getHreflang

public String getHreflang()
Language code of the linked resource. See the hreflang attribute definition in HTML 4.01.
Specified by:
getHreflang in interface HTMLLinkElement

getMedia

public String getMedia()
Designed for use with one or more target media. See the media attribute definition in HTML 4.01.
Specified by:
getMedia in interface HTMLLinkElement

getRel

public String getRel()
Forward link type. See the rel attribute definition in HTML 4.01.
Specified by:
getRel in interface HTMLLinkElement

getRev

public String getRev()
Reverse link type. See the rev attribute definition in HTML 4.01.
Specified by:
getRev in interface HTMLLinkElement

getTarget

public String getTarget()
Frame to render the resource in. See the target attribute definition in HTML 4.01.
Specified by:
getTarget in interface HTMLLinkElement

getType

public String getType()
Advisory content type. See the type attribute definition in HTML 4.01.
Specified by:
getType in interface HTMLLinkElement

navigate

public void navigate()

processLink

protected void processLink()

setDisabled

public void setDisabled(boolean disabled)
Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
Specified by:
setDisabled in interface HTMLLinkElement

setHref

public void setHref(String href)
The URI [IETF RFC 2396] of the linked resource. See the href attribute definition in HTML 4.01.
Specified by:
setHref in interface HTMLLinkElement

setHreflang

public void setHreflang(String hreflang)
Language code of the linked resource. See the hreflang attribute definition in HTML 4.01.
Specified by:
setHreflang in interface HTMLLinkElement

setMedia

public void setMedia(String media)
Designed for use with one or more target media. See the media attribute definition in HTML 4.01.
Specified by:
setMedia in interface HTMLLinkElement

setRel

public void setRel(String rel)
Forward link type. See the rel attribute definition in HTML 4.01.
Specified by:
setRel in interface HTMLLinkElement

setRev

public void setRev(String rev)
Reverse link type. See the rev attribute definition in HTML 4.01.
Specified by:
setRev in interface HTMLLinkElement

setTarget

public void setTarget(String target)
Frame to render the resource in. See the target attribute definition in HTML 4.01.
Specified by:
setTarget in interface HTMLLinkElement

setType

public void setType(String type)
Advisory content type. See the type attribute definition in HTML 4.01.
Specified by:
setType in interface HTMLLinkElement

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
Overrides:
setUserData in interface NodeImpl