|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.lowagie.text.xml.SAXiTextHandler
com.lowagie.text.html.SAXmyHtmlHandler
public class SAXmyHtmlHandler
The Tags
-class maps several XHTML-tags to iText-objects.
Field Summary | |
---|---|
private java.util.Properties |
bodyAttributes
These are the properties of the body section. |
private boolean |
tableBorder
This is the status of the table border. |
Fields inherited from class com.lowagie.text.xml.SAXiTextHandler |
---|
chapters, controlOpenClose, currentChunk, document, ignore, myTags, stack |
Constructor Summary | |
---|---|
SAXmyHtmlHandler(DocListener document)
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object. |
|
SAXmyHtmlHandler(DocListener document,
BaseFont bf)
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object. |
|
SAXmyHtmlHandler(DocListener document,
java.util.HashMap htmlTags)
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object. |
Method Summary | |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name)
This method gets called when an end tag is encountered. |
void |
startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name,
org.xml.sax.Attributes attrs)
This method gets called when a start tag is encountered. |
Methods inherited from class com.lowagie.text.xml.SAXiTextHandler |
---|
characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenClose |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Properties bodyAttributes
private boolean tableBorder
Constructor Detail |
---|
public SAXmyHtmlHandler(DocListener document) throws DocumentException, java.io.IOException
Document
-object.
document
- this is the document on which events must be triggered
java.io.IOException
DocumentException
public SAXmyHtmlHandler(DocListener document, BaseFont bf) throws DocumentException, java.io.IOException
Document
-object.
document
- this is the document on which events must be triggeredbf
-
java.io.IOException
DocumentException
public SAXmyHtmlHandler(DocListener document, java.util.HashMap htmlTags) throws DocumentException, java.io.IOException
Document
-object.
document
- this is the document on which events must be triggeredhtmlTags
- a tagmap translating HTML tags to iText tags
java.io.IOException
DocumentException
Method Detail |
---|
public void startElement(java.lang.String uri, java.lang.String lname, java.lang.String name, org.xml.sax.Attributes attrs)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class SAXiTextHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if
Namespace processing is not being performed.name
- the name of the tag that is encounteredattrs
- the list of attributespublic void endElement(java.lang.String uri, java.lang.String lname, java.lang.String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class SAXiTextHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if
Namespace processing is not being performed.name
- the name of the tag that ends
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |