Invokes a callback for each attribute.
public boolean onAttrGenerate( String strName, String strValue )
public boolean onAttrGenerate( int key, String strName, String strValue )
key
The key for this style, if registered; otherwise, -1.
strName
The default name of the attribute.
strValue
The default value for the attribute.
Returns true to generate the default tag, or returns false to skip it.
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