|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument
public class StyleSheetDocument
Parsed representation of a Trinidad style sheet document. The StyleSheetDocument provides access to both style as well as icons information, but not to skin properties.
| Field Summary | |
|---|---|
static long |
UNKNOWN_TIMESTAMP
Value used to indicate that the document timestamp is not know. |
| Constructor Summary | |
|---|---|
StyleSheetDocument(StyleSheetNode[] styleSheets)
Deprecated. |
|
StyleSheetDocument(StyleSheetNode[] styleSheets,
java.lang.String documentVersion)
Deprecated. |
|
StyleSheetDocument(StyleSheetNode[] styleSheets,
java.lang.String documentVersion,
long documentTimestamp)
Creates a StyleSheetDocument |
|
| Method Summary | |
|---|---|
java.lang.String |
getDocumentId(StyleContext sContext)
Returns the StyleSheetDocument's id. |
long |
getDocumentTimestamp()
Returns a timestamp which indicates when the underlying source files which were used to create this StyleSheetDocument were last modified. |
java.lang.String |
getDocumentVersion()
Returns the version identifier for this style sheet document. |
java.util.Iterator<IconNode> |
getIcons(StyleContext context)
Returns an Iterator of StyleNode objects for the specified context. |
StyleNode |
getStyleByName(StyleContext context,
java.lang.String name)
Returns the fully-resolved StyleNode for the style with the specified name. |
StyleNode |
getStyleBySelector(StyleContext context,
java.lang.String selector)
Returns the fully-resolved StyleNode for the style with the specified selector. |
java.util.Iterator<StyleNode> |
getStyles(StyleContext context)
Returns an Iterator of StyleNode objects for the specified context. |
java.util.Iterator<StyleSheetNode> |
getStyleSheets()
Implementation of StyleSheetDocument.getStyleSheets(); |
java.util.Iterator<StyleSheetNode> |
getStyleSheets(StyleContext context)
Returns all StyleSheetNodes which can be applied to the specified context, sorted from lowest to highest precedence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long UNKNOWN_TIMESTAMP
| Constructor Detail |
|---|
@Deprecated public StyleSheetDocument(StyleSheetNode[] styleSheets)
@Deprecated
public StyleSheetDocument(StyleSheetNode[] styleSheets,
java.lang.String documentVersion)
public StyleSheetDocument(StyleSheetNode[] styleSheets,
java.lang.String documentVersion,
long documentTimestamp)
styleSheets - The StyleSheetNodes which define the contents
of this StyleSheetDocument.documentVersion - The version identifier for this StyleSheetDocument.documentTimestamp - The timestamp for this StyleSheetDocument.| Method Detail |
|---|
public java.lang.String getDocumentId(StyleContext sContext)
sContext - The current StyleContext which is used to get the stylesheets that match,
and then we create an id based on those stylesheets
public java.lang.String getDocumentVersion()
public long getDocumentTimestamp()
public java.util.Iterator<StyleSheetNode> getStyleSheets()
public java.util.Iterator<StyleSheetNode> getStyleSheets(StyleContext context)
public java.util.Iterator<IconNode> getIcons(StyleContext context)
public java.util.Iterator<StyleNode> getStyles(StyleContext context)
public StyleNode getStyleBySelector(StyleContext context,
java.lang.String selector)
public StyleNode getStyleByName(StyleContext context,
java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||