Examples of SkinsNode


Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

    ExternalContext context)
  {
    InputStream in = context.getResourceAsStream(_CONFIG_FILE);
    if (in != null)
    {
      SkinsNode webInfSkinsNode =
        _getSkinsNodeFromInputStream(null, null, in, _getDefaultManager(), _CONFIG_FILE);

      return webInfSkinsNode;
    }
    else
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

        {
          // parse the config file and register the skin's additional stylesheets.
          InputStream in = url.openStream();
          if (in != null)
          {
            SkinsNode  metaInfSkinsNode =
              _getSkinsNodeFromInputStream(null, null, in, _getDefaultManager(),
                                           _META_INF_CONFIG_FILE);
             
            allSkinsNodes.add(metaInfSkinsNode);
            in.close();
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

      throw new NullPointerException(_LOG.getMessage(
        "NO_INPUTSTREAM"));
    if (parserManager == null)
      throw new NullPointerException(_LOG.getMessage(
        "NULL_PARSEMANAGER"));
    SkinsNode skinsNode = null;
    try
    {
      InputSource input = new InputSource();
      input.setByteStream(inputStream);
      input.setPublicId(configFile)
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

    {
      _addSkinToFactory(skinFactory, skinNode, true);
    }
   
    // Add WEB-INF/trinidad-skins.xml skins to skin factory. (sorted first)   
    SkinsNode webInfSkinsNode = _getWebInfSkinsNode(context);
    if (webInfSkinsNode != null)
    {
      List<SkinNode> webInfSkinNodes = webInfSkinsNode.getSkinNodes();
 
      List<SkinNode> sortedWebInfSkinNodes = _sortSkinNodes(skinFactory, webInfSkinNodes);
     
      // register skins found in webInfSkinNodes
      for (SkinNode skinNode : sortedWebInfSkinNodes)
      {
        _addSkinToFactory(skinFactory, skinNode, false);
      }
    }
   
    // register all the skin additions from META-INF trinidad-skins.xml and WEB-INF
    // trinidad-skins.xml that we have stored in the metaInfSkinsNodeList object and the
    // webInfSkinsNode object
    // skin-additions are additions to a skin, not extensions. They are used by
    // custom component developers that want to add a stylesheet for their components
    // to a particular skin, like the simple skin.
    FacesContext fContext = FacesContext.getCurrentInstance();
    // register skin-additions from META-INF/trinidad-skins.xml files
    _registerMetaInfSkinAdditions(fContext, skinFactory, metaInfSkinsNodeList);

    // register skin-additions from WEB-INF/trinidad-skins.xml file
    if (webInfSkinsNode != null)
    {
      List<SkinAdditionNode> skinAdditionNodeList = webInfSkinsNode.getSkinAdditionNodes();
      _registerSkinAdditions(fContext, skinFactory, skinAdditionNodeList, false);   
    }
   
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

    ExternalContext context)
  {
    InputStream in = context.getResourceAsStream(_CONFIG_FILE);
    if (in != null)
    {
      SkinsNode webInfSkinsNode =
        _getSkinsNodeFromInputStream(null, null, in, _getDefaultManager(), _CONFIG_FILE);

      return webInfSkinsNode;
    }
    else
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

          {
            // parse the config file and register the skin's additional stylesheets.
 
            if (in != null)
            {
              SkinsNode  metaInfSkinsNode =
                _getSkinsNodeFromInputStream(null, null, in, _getDefaultManager(),
                                             _META_INF_CONFIG_FILE);
 
              allSkinsNodes.add(metaInfSkinsNode);
             
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

      throw new NullPointerException(_LOG.getMessage(
        "NO_INPUTSTREAM"));
    if (parserManager == null)
      throw new NullPointerException(_LOG.getMessage(
        "NULL_PARSEMANAGER"));
    SkinsNode skinsNode = null;
    try
    {
      InputSource input = new InputSource();
      input.setByteStream(inputStream);
      input.setPublicId(configFile);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

    {
      _addSkinToFactory(skinFactory, skinNode, true);
    }
   
    // Add WEB-INF/trinidad-skins.xml skins to skin factory. (sorted first)   
    SkinsNode webInfSkinsNode = _getWebInfSkinsNode(context);
    if (webInfSkinsNode != null)
    {
      List<SkinNode> webInfSkinNodes = webInfSkinsNode.getSkinNodes();
 
      List<SkinNode> sortedWebInfSkinNodes = _sortSkinNodes(skinFactory, webInfSkinNodes);
     
      // register skins found in webInfSkinNodes
      for (SkinNode skinNode : sortedWebInfSkinNodes)
      {
        _addSkinToFactory(skinFactory, skinNode, false);
      }
    }
   
    // register all the skin additions from META-INF trinidad-skins.xml and WEB-INF
    // trinidad-skins.xml that we have stored in the metaInfSkinsNodeList object and the
    // webInfSkinsNode object
    // skin-additions are additions to a skin, not extensions. They are used by
    // custom component developers that want to add a stylesheet for their components
    // to a particular skin, like the simple skin.
    FacesContext fContext = FacesContext.getCurrentInstance();
    // register skin-additions from META-INF/trinidad-skins.xml files
    _registerMetaInfSkinAdditions(fContext, skinFactory, metaInfSkinsNodeList);

    // register skin-additions from WEB-INF/trinidad-skins.xml file
    if (webInfSkinsNode != null)
    {
      List<SkinAdditionNode> skinAdditionNodeList = webInfSkinsNode.getSkinAdditionNodes();
      _registerSkinAdditions(fContext, skinFactory, skinAdditionNodeList, false);   
    }
   
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.skin.parse.SkinsNode

    ExternalContext context)
  {
    InputStream in = context.getResourceAsStream(_CONFIG_FILE);
    if (in != null)
    {
      SkinsNode webInfSkinsNode =
        _getSkinsNodeFromInputStream(null, null, in, _getDefaultManager(), _CONFIG_FILE);

      return webInfSkinsNode;
    }
    else
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.laf.xml.parse.SkinsNode

 
    if (inputStream == null)
      throw new NullPointerException("Null inputStream");
    if (parserManager == null)
      throw new NullPointerException("Null parserManager");
    SkinsNode skinsNode = null;
    try
    {
      InputSource input = new InputSource();
      input.setByteStream(inputStream);
      input.setPublicId(configFile);
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.