DhHTMLGenerator.onStyleGenerate

Overview | Methods | Fields | This Package | All Packages

DhHTMLGenerator.onStyleGenerate

Invokes a callback for each style-attribute pair.

Syntax

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

public boolean onStyleGenerate( 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

Override this method to perform any desired additions or manipulations for the specified style. The following is an example of code that is not compatible with the cascading style sheet for font color:

if ( strName.equalsIgnoreCase( "color" ) ){
  addEnclosingTag( "FONT", "COLOR=" + strValue );
  return false;
}

See Also   addEnclosingTag, addInnerTag, addStyleString, addAttrString