|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.builder.w3c.html.XHtmlStyle
public class XHtmlStyle
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
| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.String,java.lang.String> |
attributes
|
protected java.lang.String |
className
|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
objects
|
| Constructor Summary | |
|---|---|
XHtmlStyle(java.lang.String styleName)
Creates a new instance of XHtmlStyle |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String attribName)
Get a style attribute |
java.awt.Color |
getBackground(boolean returnDefault)
Get the background color defined by this style, if any. |
java.awt.Font |
getFont()
Get the Font setup by this style |
java.awt.Color |
getForeground(boolean returnDefault)
Get the foreground color defined by this style, if any. |
void |
parse(java.lang.String css)
Parse a CSS string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String className
protected java.util.Hashtable<java.lang.String,java.lang.String> attributes
protected java.util.Hashtable<java.lang.String,java.lang.Object> objects
| Constructor Detail |
|---|
public XHtmlStyle(java.lang.String styleName)
styleName - the name of teh style as defined in the style sheet| Method Detail |
|---|
public java.lang.String getAttribute(java.lang.String attribName)
attribName - the attribute name
public java.awt.Font getFont()
public java.awt.Color getForeground(boolean returnDefault)
returnDefault - return the default value if no attribute is specified
public java.awt.Color getBackground(boolean returnDefault)
returnDefault - return the default value if no attribute is specified
public void parse(java.lang.String css)
the - css string containing a single style style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||