Code example for DefaultHandler

Methods: endElementstartElement

0
	 * @param context 
	 * @throws SAXException 
	 */ 
	protected void startPageSequence(TableRenderContext context)
			throws SAXException {
		this.documentHandler.startElement(FOElementMapping.URI,
				"page-sequence", "page-sequence", 
				createPageSequenceAttributes(context));
 
		if (getShowHeader()) { 
			AttributesImpl attributes = new AttributesImpl();
			attributes.addAttribute("", "flow-name", "flow-name", "CDATA",
					"xsl-region-before"); 
 
			this.documentHandler.startElement(FOElementMapping.URI,
					"static-content", "static-content", attributes);
 
			startHeaderBlock(context);
			endHeaderBlock(context);
 
			this.documentHandler.endElement(FOElementMapping.URI,
					"static-content", "static-content"); 
		} 
 
		if (getShowFooter()) { 
			AttributesImpl attributes = new AttributesImpl();
			attributes.addAttribute("", "flow-name", "flow-name", "CDATA",
					"xsl-region-after"); 
 
			this.documentHandler.startElement(FOElementMapping.URI,
					"static-content", "static-content", attributes);
 
			startFooterBlock(context);
			createFooterContent(context);
			endFooterBlock(context);
 
			this.documentHandler.endElement(FOElementMapping.URI,
					"static-content", "static-content"); 
		} 
 
		this.documentHandler.startElement(FOElementMapping.URI, "flow", "flow",
				createFlowAttributes(context));
 
		if (getShowHeader()) { 
			createHeaderContent(context);
		} 
Contextual code suggestions in your IDE  Get Codota for Java