com.openhtmltopdf.css.newmatch.CascadedStyle .
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private IdentValue | _identVal
Description of the Field |
| private static final int | AUTHOR_IMPORTANT
ImportanceAndOrigin of stylesheet - author important |
| private static final int | AUTHOR_NORMAL
ImportanceAndOrigin of stylesheet - author normal |
| private CSSName | cssName
Description of the Field |
| private CSSPrimitiveValue | cssPrimitiveValue
Description of the Field |
| private boolean | identIsSet
Description of the Field |
| public static final int | IMPORTANCE_AND_ORIGIN_COUNT
ImportanceAndOrigin of stylesheet - how many different |
| private boolean | important
Whether the property was declared as important! |
| private int | origin
Origin constant from the list defined in |
| private static final int | USER_AGENT
ImportanceAndOrigin of stylesheet - user agent |
| private static final int | USER_IMPORTANT
ImportanceAndOrigin of stylesheet - user important |
| private static final int | USER_NORMAL
ImportanceAndOrigin of stylesheet - user normal |
| Access | Constructor and Description |
|---|---|
| public | PropertyDeclaration(CSSName cssName, CSSPrimitiveValue
The CSSValue to wrap value, boolean True if property was declared important! and false if
not. imp, int int constant from orig)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.Creates a new instance of PropertyDeclaration from an |
| Modifier and Type | Method and Description |
|---|---|
| public IdentValue | |
| public CSSName | |
| public String | |
| public String | |
| public int | Returns: See method javadoc.Returns an int representing the combined origin and importance of the property as declared. |
| public int | |
| public String | |
| public CSSPrimitiveValue | |
| public boolean | |
| public void | |
| public String | Returns: A string representation of the object.Overrides java. Converts to a String representation of the object. |
| _fingerprint | back to summary |
|---|---|
| private String _fingerprint | |
| _identVal | back to summary |
|---|---|
| private IdentValue _identVal Description of the Field | |
| AUTHOR_IMPORTANT | back to summary |
|---|---|
| private static final int AUTHOR_IMPORTANT ImportanceAndOrigin of stylesheet - author important | |
| AUTHOR_NORMAL | back to summary |
|---|---|
| private static final int AUTHOR_NORMAL ImportanceAndOrigin of stylesheet - author normal | |
| cssName | back to summary |
|---|---|
| private CSSName cssName Description of the Field | |
| cssPrimitiveValue | back to summary |
|---|---|
| private CSSPrimitiveValue cssPrimitiveValue Description of the Field | |
| identIsSet | back to summary |
|---|---|
| private boolean identIsSet Description of the Field | |
| IMPORTANCE_AND_ORIGIN_COUNT | back to summary |
|---|---|
| public static final int IMPORTANCE_AND_ORIGIN_COUNT ImportanceAndOrigin of stylesheet - how many different | |
| important | back to summary |
|---|---|
| private boolean important Whether the property was declared as important! by the user. | |
| origin | back to summary |
|---|---|
| private int origin Origin constant from the list defined in | |
| USER_AGENT | back to summary |
|---|---|
| private static final int USER_AGENT ImportanceAndOrigin of stylesheet - user agent | |
| USER_IMPORTANT | back to summary |
|---|---|
| private static final int USER_IMPORTANT ImportanceAndOrigin of stylesheet - user important | |
| USER_NORMAL | back to summary |
|---|---|
| private static final int USER_NORMAL ImportanceAndOrigin of stylesheet - user normal | |
| PropertyDeclaration | back to summary |
|---|---|
| public PropertyDeclaration(CSSName cssName, CSSPrimitiveValue value, boolean imp, int orig) Creates a new instance of PropertyDeclaration from an
| |
| asIdentValue | back to summary |
|---|---|
| public IdentValue asIdentValue() Description of the Method
| |
| getCSSName | back to summary |
|---|---|
| public CSSName getCSSName() Gets the cSSName attribute of the PropertyDeclaration object
| |
| getDeclarationStandardText | back to summary |
|---|---|
| public String getDeclarationStandardText() | |
| getFingerprint | back to summary |
|---|---|
| public String getFingerprint() | |
| getImportanceAndOrigin | back to summary |
|---|---|
| public int getImportanceAndOrigin() Returns an int representing the combined origin and importance of the property as declared. The int is assigned such that default origin and importance is 0, and highest an important! property defined by the user (origin is Stylesheet.USER). The combined value would allow this property to be sequenced in the CSS cascade along with other properties matched to the same element with the same property name. In that sort, the highest sequence number returned from this method would take priority in the cascade, so that a user important! property would override a user non-important! property, and so on. The actual integer value returned by this method is unimportant, but has a lowest value of 0 and increments sequentially by 1 for each increase in origin/importance..
| |
| getOrigin | back to summary |
|---|---|
| public int getOrigin() | |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Returns the CSS name of this property, e.g. "font-family".
| |
| getValue | back to summary |
|---|---|
| public CSSPrimitiveValue getValue() Returns the specified
| |
| isImportant | back to summary |
|---|---|
| public boolean isImportant() | |
| toCSS | back to summary |
|---|---|
| public void toCSS(StringBuilder sb) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Converts to a String representation of the object. | |