| java.lang.Object com.xoetrope.builder.w3c.html.XHtmlStyle
XHtmlStyle | public class XHtmlStyle (Code) | | XHtmlStyle holds the attributes and properties defined as part of a CSS style
sheet style.
Copyright (c) Xoetrope Ltd., 2002-2006
$Revision: 1.2 $
License: see License.txt
|
XHtmlStyle | public XHtmlStyle(String styleName)(Code) | | Creates a new instance of XHtmlStyle
Parameters: styleName - the name of teh style as defined in the style sheet |
getAttribute | public String getAttribute(String attribName)(Code) | | Get a style attribute
Parameters: attribName - the attribute name the attribute value |
getBackground | public Color getBackground(boolean returnDefault)(Code) | | Get the background color defined by this style, if any. Otherwise whiye is
returned.
Parameters: returnDefault - return the default value if no attribute is specified the background color or null if no default is specified and returnDefault is false |
getFont | public Font getFont()(Code) | | Get the Font setup by this style
the font |
getForeground | public Color getForeground(boolean returnDefault)(Code) | | Get the foreground color defined by this style, if any. Otherwise black is
returned.
Parameters: returnDefault - return the default value if no attribute is specified the foreground color or null if no default is specified and returnDefault is false |
parse | public void parse(String css)(Code) | | Parse a CSS string
Parameters: the - css string containing a single style style |
|
|