Top Description Fields Constructors Methods
com.openhtmltopdf.render

public Class DefaultObjectDrawerFactory

extends Object
implements FSObjectDrawerFactory
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSObjectDrawerFactory
Imports
com.openhtmltopdf.extend.FSObjectDrawer, .FSObjectDrawerFactory, org.w3c.dom.Element, java.util.HashMap, .Map

Default FSObjectDrawer factory, which allows to register drawer for specified content type

Field Summary

Modifier and TypeField and Description
private final Map<String, FSObjectDrawer>
drawerMap

Maps content type => Drawer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FSObjectDrawer
createDrawer(Element e)

Implements com.openhtmltopdf.extend.FSObjectDrawerFactory.createDrawer.

Determine an object drawer for the given object tag element.

public boolean
public void
registerDrawer(String
the content type this drawer is for
contentType
,
FSObjectDrawer
Drawer
drawer
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

drawerMapback to summary
private final Map<String, FSObjectDrawer> drawerMap

Maps content type => Drawer

Constructor Detail

DefaultObjectDrawerFactoryback to summary
public DefaultObjectDrawerFactory()

Method Detail

createDrawerback to summary
public FSObjectDrawer createDrawer(Element e)

Implements com.openhtmltopdf.extend.FSObjectDrawerFactory.createDrawer.

Doc from com.openhtmltopdf.extend.FSObjectDrawerFactory.createDrawer.

Determine an object drawer for the given object tag element.

Annotations
@Override
isReplacedObjectback to summary
public boolean isReplacedObject(Element e)

Implements com.openhtmltopdf.extend.FSObjectDrawerFactory.isReplacedObject.

Parameters
e:Element

Doc from com.openhtmltopdf.extend.FSObjectDrawerFactory.isReplacedObject.

eleemnt with tag name of object.

Returns:boolean

Doc from com.openhtmltopdf.extend.FSObjectDrawerFactory.isReplacedObject.

true if this object drawer can handle this element.

Annotations
@Override
registerDrawerback to summary
public void registerDrawer(String contentType, FSObjectDrawer drawer)
Parameters
contentType:String

the content type this drawer is for

drawer:FSObjectDrawer

Drawer