DhHTMLGenerator.onAttrGenerate

Overview | Methods | Fields | This Package | All Packages

DhHTMLGenerator.onAttrGenerate

Invokes a callback for each attribute.

Syntax

public boolean onAttrGenerate( String strName, String strValue )

public boolean onAttrGenerate( int key, String strName, String strValue )

Parameters

key

The key for this style, if registered; otherwise, -1.

strName

The default name of the attribute.

strValue

The default value for the attribute.

Return Value

Returns true to generate the default tag, or returns false to skip it.

Remarks

You can perform any desired additions or manipulations for the specified attribute. The following is an example of moving WIDTH attribute into style text:

if ( strName.equalsIgnoreCase( "WIDTH" ) ){
    addStyleString( "width", strValue );
 return false;
}

See Also   addEnclosingTag, addInnerTag, addStyleString, addAttrString