DhHTMLGenerator.addEnclosingTag

Overview | Methods | Fields | This Package | All Packages

DhHTMLGenerator.addEnclosingTag

Adds an enclosing tag around the current tag.

Syntax

protected final void addEnclosingTag( String strTag, String strAttrs, boolean fClose )

Parameters

strTag

The new enclosing tag name.

strAttrs

The new enclosing tag's attribute string or strings.

fClose

Set to true to additionally add the closing tag for this tag.

Remarks

This tag also encloses any existing enclosing tags.

As an example of using this method, supposed you have the following as HTML content:

<SPAN id=span1>Hello!</SPAN> 

After calling addEnclosingTag( "B", "id=theBold", true ), the HTML appears as follows:

<B id=theBold><SPAN id=span1>Hello!</SPAN></B>