org.ujac.print
Interface StyleParser

All Known Implementing Classes:
DefaultStyleParser

public interface StyleParser

Name: StyleParser
Description: An interface for style attribute parsers.

Author:
lauerc

Method Summary
 int parseStyle(Locator locator, String styleDef, Map supportedAttributeMap, Map styleMap)
          Scans the styles from the given string.
 void setAttributeHandler(AttributeHandler attributeHandler)
          Sets the attribute handler.
 

Method Detail

setAttributeHandler

void setAttributeHandler(AttributeHandler attributeHandler)
Sets the attribute handler.

Parameters:
attributeHandler - The attribute handler to set.

parseStyle

int parseStyle(Locator locator,
               String styleDef,
               Map supportedAttributeMap,
               Map styleMap)
               throws DocumentHandlerException
Scans the styles from the given string.

Parameters:
locator - The tag source locator.
styleDef - The style definition (eg 'background-color:#cccccc; text-align:center; font-size:12px;...')"),
supportedAttributeMap - The map of supported attributes.
styleMap - The map to fill the styles in.
Returns:
The number of detected style attributes
Throws:
DocumentHandlerException - In case the parsing failed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.