Class ThemeAccentColorResourceHandler

java.lang.Object
javax.faces.application.ResourceHandler
javax.faces.application.ResourceHandlerWrapper
org.primefaces.extensions.application.ThemeAccentColorResourceHandler
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>

public class ThemeAccentColorResourceHandler extends javax.faces.application.ResourceHandlerWrapper
This resource handler replaces the accent color of the Arya, Saga and Vela themes with variables. Variables are named themeX, theme is the lower case theme name, X is the index number of the color.
Since:
10.0.1
Author:
Jasper de Vries <jepsar@gmail.com>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     

    Fields inherited from class javax.faces.application.ResourceHandler

    JSF_SCRIPT_LIBRARY_NAME, JSF_SCRIPT_RESOURCE_NAME, LOCALE_PREFIX, RESOURCE_CONTRACT_XML, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER, WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME, WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThemeAccentColorResourceHandler(javax.faces.application.ResourceHandler wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.faces.application.Resource
    createResource(String resourceName, String libraryName)
     
    protected boolean
    isPrimeFacesTheme(String resourceName, String libraryName)
     

    Methods inherited from class javax.faces.application.ResourceHandlerWrapper

    createResource, createResource, createResourceFromId, createViewResource, getRendererTypeForResourceName, getViewResources, getViewResources, getWrapped, handleResourceRequest, isResourceRendered, isResourceRequest, isResourceURL, libraryExists, markResourceRendered

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ThemeAccentColorResourceHandler

      public ThemeAccentColorResourceHandler(javax.faces.application.ResourceHandler wrapped)
  • Method Details

    • isPrimeFacesTheme

      protected boolean isPrimeFacesTheme(String resourceName, String libraryName)
    • createResource

      public javax.faces.application.Resource createResource(String resourceName, String libraryName)
      Overrides:
      createResource in class javax.faces.application.ResourceHandlerWrapper