|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.CSSOMReadOnlyStyleDeclaration
This class implements the CSSStyleDeclaration
interface.
Inner Class Summary | |
protected static class |
CSSOMReadOnlyStyleDeclaration.AuthorValueEntry
To store a author value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.ImportantAuthorValueEntry
To store an important author value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.ImportantUserAgentValueEntry
To store an important user-agent value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.ImportantUserValueEntry
To store an important user value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.PropertyMap
To store the values. |
protected static class |
CSSOMReadOnlyStyleDeclaration.UserAgentValueEntry
To store a user-agent value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.UserValueEntry
To store a user value. |
protected static class |
CSSOMReadOnlyStyleDeclaration.ValueEntry
This interface represents a value entry in the table. |
Field Summary | |
static int |
AUTHOR_ORIGIN
To tag the properties that comes from the author. |
protected Element |
parentElement
The associated parent element. |
protected CSSOMReadOnlyStyleDeclaration.PropertyMap |
properties
The properties. |
static int |
USER_AGENT_ORIGIN
To tag the properties that comes from a user agent. |
static int |
USER_ORIGIN
To tag the properties that comes from the user preferences. |
protected AbstractViewCSS |
viewCSS
The ViewCSS. |
Constructor Summary | |
CSSOMReadOnlyStyleDeclaration(AbstractViewCSS v,
Element elt)
Creates a new CSSOMReadOnlyStyleDeclaration object. |
|
CSSOMReadOnlyStyleDeclaration(CSSOMReadOnlyStyleDeclaration sd)
Creates a new CSSOMReadOnlyStyleDeclaration object. |
Method Summary | |
protected static CSSOMReadOnlyStyleDeclaration.ValueEntry |
createValueEntry(CSSOMReadOnlyValue v,
java.lang.String s,
int p)
Creates a new value entry. |
java.lang.String |
getCssText()
DOM: Implements CSSStyleDeclaration.getCssText() . |
int |
getLength()
DOM: Implements CSSStyleDeclaration.getLength() . |
CSSValue |
getLocalPropertyCSSValue(java.lang.String propertyName)
Returns the local CSSValue. |
int |
getLocalPropertyOrigin(java.lang.String propertyName)
Returns the local property origin. |
java.lang.String |
getLocalPropertyPriority(java.lang.String propertyName)
Returns the local priority. |
CSSRule |
getParentRule()
DOM: Implements CSSStyleDeclaration.getParentRule() . |
CSSValue |
getPropertyCSSValue(java.lang.String propertyName)
DOM: Implements CSSStyleDeclaration.getPropertyCSSValue(String) . |
CSSOMReadOnlyValue |
getPropertyCSSValueInternal(java.lang.String propertyName)
Internal version of getPropertyCSSValue(). |
int |
getPropertyOrigin(java.lang.String propertyName)
Returns a property origin. |
java.lang.String |
getPropertyPriority(java.lang.String propertyName)
DOM: Implements CSSStyleDeclaration.getPropertyPriority(String) . |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
DOM: Implements CSSStyleDeclaration.getPropertyValue(String) . |
java.lang.String |
item(int index)
DOM: Implements CSSStyleDeclaration.item(int) . |
java.lang.String |
removeProperty(java.lang.String propertyName)
DOM: Implements CSSStyleDeclaration.removeProperty(String) . |
void |
setContext(AbstractViewCSS v,
Element elt)
Sets the declaration context. |
void |
setCssText(java.lang.String cssText)
DOM: Implements CSSStyleDeclaration.setCssText(String) .
|
void |
setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String prio)
DOM: Implements CSSStyleDeclaration.setProperty(String,String,String) . |
void |
setPropertyCSSValue(java.lang.String propertyName,
CSSValue v,
java.lang.String imp,
int orig)
Sets a property value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int USER_AGENT_ORIGIN
public static final int USER_ORIGIN
public static final int AUTHOR_ORIGIN
protected CSSOMReadOnlyStyleDeclaration.PropertyMap properties
protected AbstractViewCSS viewCSS
protected Element parentElement
Constructor Detail |
public CSSOMReadOnlyStyleDeclaration(AbstractViewCSS v, Element elt)
public CSSOMReadOnlyStyleDeclaration(CSSOMReadOnlyStyleDeclaration sd)
Method Detail |
public void setContext(AbstractViewCSS v, Element elt)
public java.lang.String getCssText()
CSSStyleDeclaration.getCssText()
.getCssText
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public void setCssText(java.lang.String cssText) throws DOMException
CSSStyleDeclaration.setCssText(String)
.
Throws a NO_MODIFICATION_ALLOWED_ERR DOMException
.setCssText
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public java.lang.String getPropertyValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyValue(String)
.getPropertyValue
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
propertyName
- The name of the CSS property. See the CSS
property index.public CSSValue getPropertyCSSValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String)
.getPropertyCSSValue
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
propertyName
- The name of the CSS property. See the CSS
property index.null
if the
property has not been set.public CSSOMReadOnlyValue getPropertyCSSValueInternal(java.lang.String propertyName)
public CSSValue getLocalPropertyCSSValue(java.lang.String propertyName)
public void setPropertyCSSValue(java.lang.String propertyName, CSSValue v, java.lang.String imp, int orig)
public int getPropertyOrigin(java.lang.String propertyName)
public int getLocalPropertyOrigin(java.lang.String propertyName)
public java.lang.String removeProperty(java.lang.String propertyName) throws DOMException
CSSStyleDeclaration.removeProperty(String)
.removeProperty
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
propertyName
- The name of the CSS property. See the CSS
property index.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly
or the property is readonly.public java.lang.String getPropertyPriority(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyPriority(String)
.getPropertyPriority
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
propertyName
- The name of the CSS property. See the CSS
property index."important"
) if one exists. The empty string if none
exists.public java.lang.String getLocalPropertyPriority(java.lang.String propertyName)
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio) throws DOMException
CSSStyleDeclaration.setProperty(String,String,String)
.setProperty
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
propertyName
- The name of the CSS property. See the CSS
property index.value
- The new value of the property.priority
- The new priority of the property (e.g.
"important"
).DOMException
- SYNTAX_ERR: Raised if the specified value has a syntax error and is
unparsable.
public int getLength()
CSSStyleDeclaration.getLength()
.getLength
in interface CSSStyleDeclaration
public java.lang.String item(int index)
CSSStyleDeclaration.item(int)
.item
in interface CSSStyleDeclaration
org.w3c.dom.css.CSSStyleDeclaration
index
- Index of the property name to retrieve.public CSSRule getParentRule()
CSSStyleDeclaration.getParentRule()
.getParentRule
in interface CSSStyleDeclaration
protected static CSSOMReadOnlyStyleDeclaration.ValueEntry createValueEntry(CSSOMReadOnlyValue v, java.lang.String s, int p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |