Examples of SkinFactory


Examples of org.apache.myfaces.trinidad.skin.SkinFactory

      // get rid of this bit of code. Should we use getViewRoot().getRenderKitId() instead?
      renderKitId = XhtmlConstants.APACHE_TRINIDAD_PDA;
    }


    SkinFactory factory = SkinFactory.getFactory();
    if (factory == null)
    {
      _LOG.warning("NO_SKIN_FACTORY");
      return;
    }

    Skin skin = factory.getSkin(null, skinFamily, renderKitId);

    if (skin == null)
    {
      if (_LOG.isWarning())
        _LOG.warning("CANNOT_GET_SKIN_FROM_SKINFACTORY", skinFamily);
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.SkinFactory

   * calling this method.
   */
  static public void registerBaseSkins()
  {

    SkinFactory skinFactory = SkinFactory.getFactory();

    // skinFactory should be non-null when this is called since it is
    // initiated in the TrinidadFilterImpl, but in case it isn't do this
    if (skinFactory == null)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.SkinFactory

   */
  static public void registerSkinExtensions(
    ExternalContext context)
  {

    SkinFactory skinFactory = SkinFactory.getFactory();

    // skinFactory should be non-null when this is called since it is
    // initiated in the TrinidadFilterImpl, but in case it isn't do this
    if (skinFactory == null)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.SkinFactory

      FacesContext context = getFacesContext();
      Object requestedSkinId = getRequestMapSkinId(context);
      if (requestedSkinId != null)
      {

        SkinFactory factory = SkinFactory.getFactory();
        if (factory == null)
        {
          _LOG.warning("NO_SKIN_FACTORY");
          return null;
        }
       
        Skin requestedSkin = factory.getSkin(context, requestedSkinId.toString());
        if (requestedSkin != null)
        {
          // In portlet mode, we will switch to using the requestedSkin
          // (the skin requested by the portlet's producer on the requestMap) if it exists.
          // Otherwise we'll use the portal skin.
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.SkinFactory

      // get rid of this bit of code. Should we use getViewRoot().getRenderKitId() instead?
      renderKitId = TrinidadRenderingConstants.APACHE_TRINIDAD_PDA;
    }


    SkinFactory factory = SkinFactory.getFactory();
    if (factory == null)
    {
      _LOG.warning("NO_SKIN_FACTORY");
      return;
    }

    Skin skin = factory.getSkin(null, skinFamily, renderKitId);

    if (skin == null)
    {
      if (_LOG.isWarning())
        _LOG.warning("CANNOT_GET_SKIN_FROM_SKINFACTORY", skinFamily);
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.SkinFactory

   * calling this method.
   */
  static public void registerBaseSkins()
  {

    SkinFactory skinFactory = SkinFactory.getFactory();

    // skinFactory should be non-null when this is called since it is
    // initiated in the TrinidadFilterImpl, but in case it isn't do this
    if (skinFactory == null)
    {
View Full Code Here

Examples of org.richfaces.skin.SkinFactory

            FacesContext context = FacesContext.getCurrentInstance();

            ResourcePath location = resourcePath;

            if (ResourceSkinUtils.isSkinDependent(resourcePath.toExternalForm())) {
                SkinFactory skinFactory = SkinFactory.getInstance(context);
                String skinName = skinFactory.getSkin(context).getName();
                location = new ResourcePath(ResourceSkinUtils.evaluateSkinInPath(resourcePath.toExternalForm(), skinName));
            }

            return new ResourceServletMapping(location).getResourcePath(context);
        }
View Full Code Here

Examples of org.richfaces.skin.SkinFactory

    public String getContentType() {
        return getWrapped().getImageType().getMimeType();
    }

    protected String getValueParameter(FacesContext context, String name) {
        SkinFactory skinFactory = SkinFactory.getInstance(context);

        Skin skin = skinFactory.getSkin(context);
        String value = (String) skin.getParameter(context, name);

        if (value == null || value.length() == 0) {
            skin = skinFactory.getDefaultSkin(context);
            value = (String) skin.getParameter(context, name);
        }

        return value;
    }
View Full Code Here

Examples of org.richfaces.skin.SkinFactory

        return decodeColor((String) skin.getParameter(context, name));
    }

    protected Integer getHeight(FacesContext context, String heightParamName) {
        SkinFactory skinFactory = SkinFactory.getInstance(context);
        Skin skin = skinFactory.getSkin(context);

        String height = (String) skin.getParameter(context, heightParamName);
        if (height == null || height.length() == 0) {
            skin = skinFactory.getDefaultSkin(context);
            height = (String) skin.getParameter(context, heightParamName);
        }

        if (height != null && height.length() != 0) {
            return Integer.valueOf(HtmlDimensions.decode(height).intValue());
View Full Code Here

Examples of org.richfaces.skin.SkinFactory

  return true;
    }


    protected String getValueParameter(FacesContext context, String name) {
  SkinFactory skinFactory = SkinFactory.getInstance();

  Skin skin = skinFactory.getSkin(context);
  String value = (String) skin.getParameter(context, name);

  if (value == null || value.length() == 0) {
      skin = skinFactory.getDefaultSkin(context);
      value = (String) skin.getParameter(context, name);
  }

  return value;
    }
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.