public class CSSStyle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
m_cssStyles |
Constructor and Description |
---|
CSSStyle()
Constructor.
|
CSSStyle(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this CSSStyle.
|
boolean |
equals(CSSStyle style)
Determine if the given style is equal to this style.
|
java.lang.String |
getName()
Get the name of this style.
|
java.lang.String |
getProperty(java.lang.String name)
Get the value of the specified style property.
|
java.util.Enumeration |
getPropertyNames()
Get the list of style property names defined in this style.
|
void |
merge(CSSStyle style)
Merge the given style into this style.
|
void |
setName(java.lang.String name)
Set the name of this style.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set the value for the specified style property.
|
java.lang.String |
toBlockString()
Format this style as a named style in a CSS stylesheet.
|
java.lang.String |
toInlineString()
Format this style as an inline style in an HTML file.
|
public CSSStyle()
public CSSStyle(java.lang.String name)
public void setName(java.lang.String name)
name
- the name of this stylepublic java.lang.String getName()
public java.lang.Object clone()
clone
in class java.lang.Object
public void merge(CSSStyle style)
style
- the style to merge into this stylepublic boolean equals(CSSStyle style)
style
- the style for which to find out if it is equal to
this stylepublic void setProperty(java.lang.String name, java.lang.String value)
name
- name of the style propertyvalue
- the value for the given style propertypublic java.lang.String getProperty(java.lang.String name)
name
- name of the style propertypublic java.util.Enumeration getPropertyNames()
public java.lang.String toInlineString()
public java.lang.String toBlockString()