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
FieldsFields 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
ConstructorsConstructorDescriptionThemeAccentColorResourceHandler
(javax.faces.application.ResourceHandler wrapped) -
Method Summary
Modifier and TypeMethodDescriptionjavax.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
-
Field Details
-
RESOURCE_NAME
- See Also:
-
LIBRARY_PREFIX
- See Also:
-
-
Constructor Details
-
ThemeAccentColorResourceHandler
public ThemeAccentColorResourceHandler(javax.faces.application.ResourceHandler wrapped)
-
-
Method Details
-
isPrimeFacesTheme
-
createResource
- Overrides:
createResource
in classjavax.faces.application.ResourceHandlerWrapper
-