Top Description Fields Constructors Methods
com.openhtmltopdf.context

public Class StandardAttributeResolver

extends Object
implements AttributeResolver
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.css.extend.AttributeResolver
Imports
org.w3c.dom.Element, com.openhtmltopdf.css.extend.AttributeResolver, com.openhtmltopdf.extend.NamespaceHandler, .UserAgentCallback, .UserInterface

An instance which works together with a w3c DOM tree
Author
Torbjoern Gannholm

Field Summary

Modifier and TypeField and Description
private NamespaceHandler
nsh

Description of the Field

private UserAgentCallback
uac

Description of the Field

private UserInterface
ui

Description of the Field

Constructor Summary

AccessConstructor and Description
public
StandardAttributeResolver(NamespaceHandler
PARAM
nsh
,
UserAgentCallback
PARAM
uac
,
UserInterface
PARAM
ui
)

Constructor for the StandardAttributeResolver object

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The attributeValue value
getAttributeValue
(Object
PARAM
e
,
String
PARAM
attrName
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getAttributeValue.

Gets the attributeValue attribute of the StandardAttributeResolver object

public String
public String

Returns:

The class value
getClass
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getClass.

Gets the class attribute of the StandardAttributeResolver object

public String

Returns:

The elementStyling value
getElementStyling
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getElementStyling.

Gets the elementStyling attribute of the StandardAttributeResolver object

public String

Returns:

The iD value
getID
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getID.

Gets the iD attribute of the StandardAttributeResolver object

public String

Returns:

The lang value
getLang
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getLang.

Gets the lang attribute of the StandardAttributeResolver object

public String
public boolean

Returns:

The active value
isActive
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isActive.

Gets the active attribute of the StandardAttributeResolver object

public boolean

Returns:

The focus value
isFocus
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isFocus.

Gets the focus attribute of the StandardAttributeResolver object

public boolean

Returns:

The hover value
isHover
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isHover.

Gets the hover attribute of the StandardAttributeResolver object

public boolean

Returns:

The visited value
isVisited
(Object
PARAM
e
)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isVisited.

Gets the visited attribute of the StandardAttributeResolver object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nshback to summary
private NamespaceHandler nsh

Description of the Field

uacback to summary
private UserAgentCallback uac

Description of the Field

uiback to summary
private UserInterface ui

Description of the Field

Constructor Detail

StandardAttributeResolverback to summary
public StandardAttributeResolver(NamespaceHandler nsh, UserAgentCallback uac, UserInterface ui)

Constructor for the StandardAttributeResolver object

Parameters
nsh:NamespaceHandler

PARAM

uac:UserAgentCallback

PARAM

ui:UserInterface

PARAM

Method Detail

getAttributeValueback to summary
public String getAttributeValue(Object e, String attrName)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getAttributeValue.

Gets the attributeValue attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

attrName:String

PARAM

Returns:String

The attributeValue value

getAttributeValueback to summary
public String getAttributeValue(Object e, String namespaceURI, String attrName)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getAttributeValue.

Doc from com.openhtmltopdf.css.extend.AttributeResolver.getAttributeValue.

May return null. Required to return null if attribute does not exist and not null if attribute exists.

getClassback to summary
public String getClass(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getClass.

Gets the class attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:String

The class value

getElementStylingback to summary
public String getElementStyling(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getElementStyling.

Gets the elementStyling attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:String

The elementStyling value

getIDback to summary
public String getID(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getID.

Gets the iD attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:String

The iD value

getLangback to summary
public String getLang(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getLang.

Gets the lang attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:String

The lang value

getNonCssStylingback to summary
public String getNonCssStyling(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.getNonCssStyling.

Doc from com.openhtmltopdf.css.extend.AttributeResolver.getNonCssStyling.

may return null

Parameters
e:Object

PARAM

Returns:String

The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)

isActiveback to summary
public boolean isActive(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isActive.

Gets the active attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The active value

isFocusback to summary
public boolean isFocus(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isFocus.

Gets the focus attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The focus value

isHoverback to summary
public boolean isHover(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isHover.

Gets the hover attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The hover value

isVisitedback to summary
public boolean isVisited(Object e)

Implements com.openhtmltopdf.css.extend.AttributeResolver.isVisited.

Gets the visited attribute of the StandardAttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The visited value