Class 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 java.lang.String LIBRARY_PREFIX  
      protected static java.lang.String RESOURCE_NAME  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.faces.application.Resource createResource​(java.lang.String resourceName, java.lang.String libraryName)  
      javax.faces.application.ResourceHandler getWrapped()  
      protected boolean isPrimeFacesTheme​(java.lang.String resourceName, java.lang.String libraryName)  
      • Methods inherited from class javax.faces.application.ResourceHandlerWrapper

        createResource, createResource, createResourceFromId, createViewResource, getRendererTypeForResourceName, getViewResources, getViewResources, handleResourceRequest, isResourceRendered, isResourceRequest, isResourceURL, libraryExists, markResourceRendered
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThemeAccentColorResourceHandler

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

      • isPrimeFacesTheme

        protected boolean isPrimeFacesTheme​(java.lang.String resourceName,
                                            java.lang.String libraryName)
      • createResource

        public javax.faces.application.Resource createResource​(java.lang.String resourceName,
                                                               java.lang.String libraryName)
        Overrides:
        createResource in class javax.faces.application.ResourceHandlerWrapper
      • getWrapped

        public javax.faces.application.ResourceHandler getWrapped()
        Specified by:
        getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>
        Overrides:
        getWrapped in class javax.faces.application.ResourceHandlerWrapper