public class ResourceUtils extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ResourceUtils.ResourceInfo |
Modifier and Type | Field | Description |
---|---|---|
static String |
RENDERER_SCRIPT |
|
static String |
RENDERER_STYLESHEET |
Constructor | Description |
---|---|
ResourceUtils() |
Modifier and Type | Method | Description |
---|---|---|
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name) |
|
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name,
String library) |
|
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name,
String library,
String target) |
|
static ArrayList<String> |
filterScripts(javax.faces.context.FacesContext context,
ArrayList<ResourceUtils.ResourceInfo> resourceInfos) |
|
static ArrayList<String> |
filterStylesheets(javax.faces.context.FacesContext context,
ArrayList<ResourceUtils.ResourceInfo> resourceInfos) |
|
static ArrayList<ResourceUtils.ResourceInfo> |
getComponentResources(javax.faces.context.FacesContext context) |
|
static boolean |
isInline(ResourceUtils.ResourceInfo resourceInfo) |
|
static boolean |
isScript(javax.faces.component.UIComponent component) |
|
static boolean |
isStylesheet(javax.faces.component.UIComponent component) |
|
static javax.faces.application.Resource |
newResource(ResourceUtils.ResourceInfo resourceInfo,
javax.faces.context.FacesContext context) |
|
static ResourceUtils.ResourceInfo |
newResourceInfo(javax.faces.component.UIComponent component) |
public static final String RENDERER_SCRIPT
public static final String RENDERER_STYLESHEET
public static void addComponentResource(javax.faces.context.FacesContext context, String name, String library, String target)
public static void addComponentResource(javax.faces.context.FacesContext context, String name, String library)
public static void addComponentResource(javax.faces.context.FacesContext context, String name)
public static boolean isScript(javax.faces.component.UIComponent component)
public static boolean isStylesheet(javax.faces.component.UIComponent component)
public static ArrayList<ResourceUtils.ResourceInfo> getComponentResources(javax.faces.context.FacesContext context)
public static ArrayList<String> filterStylesheets(javax.faces.context.FacesContext context, ArrayList<ResourceUtils.ResourceInfo> resourceInfos)
public static ArrayList<String> filterScripts(javax.faces.context.FacesContext context, ArrayList<ResourceUtils.ResourceInfo> resourceInfos)
public static boolean isInline(ResourceUtils.ResourceInfo resourceInfo)
public static ResourceUtils.ResourceInfo newResourceInfo(javax.faces.component.UIComponent component)
public static javax.faces.application.Resource newResource(ResourceUtils.ResourceInfo resourceInfo, javax.faces.context.FacesContext context)
Copyright © 2018. All rights reserved.