Examples of StyleSheetDocument


Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

  // And Entry contains the style sheet URI.
  private Entry _getEntry(StyleContext context)
  {
    ConcurrentMap<Key, Entry> cache = null;
    ConcurrentMap<Object, Entry> entryCache = null;
    StyleSheetDocument document = null;
    Map<String, String> shortStyleClassMap = null;
    String[] namespacePrefixes = null;
    boolean isDirty = context.isDirty();
    boolean checkModified  = context.checkStylesModified();
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

   * Returns the StyleSheetDocument, parsing the source file if necessary.
   * This does not use the StyleContext
   */
  private StyleSheetDocument _getStyleSheetDocument(StyleContext context)
  {
    StyleSheetDocument document = _document;

    // If we have a StyleSheetDocument already, just return it.
    if (document != null)
      return document;

View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    } // end for each SkinStyleSheetNode


    // StyleSheetDocument contains StyleSheetNode[] styleSheets
    StyleSheetDocument ssDocument =
      _createStyleSheetDocument(context, ssNodeList);

    return new StyleSheetEntry(sourceName,
                               ssDocument);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    List<StyleSheetNode> ssNodeList)
  {

    long timestamp = _getDocumentTimestamp(context);

    return new StyleSheetDocument(ssNodeList.toArray(new StyleSheetNode[0]),
                                    null,
                                    timestamp);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    if (!styleSheetName.endsWith(".css"))
    {

      // Parse the style sheet to create the StyleSheetDocument
      StyleSheetDocument document = _createStyleSheetDocument(resolver,
                                                              styleSheetName);
      if (document == null)
        skinStyleSheet = null;
      else
      {
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    StyleContext context
    )
  {
    // First, get the StyleSheetDocument for the custom style
    // sheet from the FileSystemStyleCache.
    StyleSheetDocument customDocument = super.createStyleSheetDocument(
                                                context);

    // Now, get the Skin's StyleSheetDocument
    StyleSheetDocument skinDocument = null;

    // Synchronize access to _skinDocument
    synchronized (this)
    {
      // gets the skin's StyleSheetDocument (it creates it if needed)
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    } // end for each SkinStyleSheetNode
   
   
    // StyleSheetDocument contains StyleSheetNode[] styleSheets
    StyleSheetDocument ssDocument =
      _createStyleSheetDocument(context, ssNodeList);

    return new StyleSheetEntry(sourceName,
                               ssDocument,
                               iconNodeList,
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    List <StyleSheetNode> ssNodeList)
  {

    long timestamp = _getDocumentTimestamp(context);

    return new StyleSheetDocument(ssNodeList.toArray(new StyleSheetNode[0]),
                                    null,
                                    timestamp);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    // the styles provided by the SkinExtension's own style
    // sheet.

    // Get the StyleSheetDocument from the base Skin
    SkinImpl baseSkin = (SkinImpl) getBaseSkin();
    StyleSheetDocument baseDocument = baseSkin.getStyleSheetDocument(context);

    // Get the StyleSheetDocument for the SkinExtension - we
    // just use super.getStyleSheetDocument() to get our own styles
    StyleSheetDocument extensionDocument = super.getStyleSheetDocument(
                                                   context);

    // Now, check to see if either of the StyleSheetDocuments have
    // changed. We synchronize here to prevent multiple threads coming
    // through and mucking with our StyleSheetDocument instance variables.
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument

    StyleSheetNode[] styleSheetsArray = new StyleSheetNode[styleSheetsCount];
    styleSheetsList.toArray(styleSheetsArray);

    // We are blowing off ColorSchemes (which should already be
    // obsolete anyway) - so we are ready to create the new document.
    return new StyleSheetDocument(styleSheetsArray,
                                  documentVersion,
                                  documentTimestamp);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.