|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xhtmlrenderer.css.sheet.PropertyDeclaration
public class PropertyDeclaration
Represents a single property declared in a CSS rule set. A
PropertyDeclaration is created from an CSSValue and is immutable. The
declaration knows its origin, importance and specificity, and thus is
prepared to be sorted out among properties of the same name, within a matched
group, for the CSS cascade, into a CascadedStyle
.
Field Summary | |
---|---|
static int |
IMPORTANCE_AND_ORIGIN_COUNT
ImportanceAndOrigin of stylesheet - how many different |
Constructor Summary | |
---|---|
PropertyDeclaration(CSSName cssName,
org.w3c.dom.css.CSSPrimitiveValue value,
boolean imp,
int orig)
Creates a new instance of PropertyDeclaration from an CSSPrimitiveValue instance. |
Method Summary | |
---|---|
IdentValue |
asIdentValue()
Description of the Method |
CSSName |
getCSSName()
Gets the cSSName attribute of the PropertyDeclaration object |
String |
getDeclarationStandardText()
|
String |
getFingerprint()
|
int |
getImportanceAndOrigin()
Returns an int representing the combined origin and importance of the property as declared. |
int |
getOrigin()
|
String |
getPropertyName()
Returns the CSS name of this property, e.g. |
org.w3c.dom.css.CSSPrimitiveValue |
getValue()
Returns the specified CSSValue for this property. |
boolean |
isImportant()
|
String |
toString()
Converts to a String representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int IMPORTANCE_AND_ORIGIN_COUNT
Constructor Detail |
---|
public PropertyDeclaration(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value, boolean imp, int orig)
CSSPrimitiveValue
instance.
cssName
- value
- The CSSValue to wrapimp
- True if property was declared important! and false if
not.orig
- int constant from Stylesheet
for the origin of
the property declaration, that is, the origin of the style sheet
where it was declared. See StylesheetInfo.USER_AGENT
, StylesheetInfo.USER
, and StylesheetInfo.AUTHOR
.Method Detail |
---|
public String toString()
toString
in class Object
public IdentValue asIdentValue()
public String getDeclarationStandardText()
public String getFingerprint()
public int getImportanceAndOrigin()
public String getPropertyName()
public CSSName getCSSName()
public org.w3c.dom.css.CSSPrimitiveValue getValue()
CSSValue
for this property.
Specified means the value as entered by the user. Modifying the CSSValue
returned here will result in indeterminate behavior--consider it
immutable.
public boolean isImportant()
public int getOrigin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |