本文整理汇总了Java中javax.faces.context.FacesContext.getRenderKit方法的典型用法代码示例。如果您正苦于以下问题:Java FacesContext.getRenderKit方法的具体用法?Java FacesContext.getRenderKit怎么用?Java FacesContext.getRenderKit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.faces.context.FacesContext
的用法示例。
在下文中一共展示了FacesContext.getRenderKit方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: _getRendererImpl
import javax.faces.context.FacesContext; //导入方法依赖的package包/类
private Renderer _getRendererImpl(FacesContext context)
{
String rendererType = getRendererType();
if (rendererType != null)
{
RenderKit renderKit = context.getRenderKit();
Renderer renderer = renderKit.getRenderer(getFamily(), rendererType);
if (renderer == null)
{
_LOG.warning("CANNOT_FIND_RENDERER", new Object[]{this, rendererType});
}
return renderer;
}
return null;
}
示例2: _getDialogRenderKitService
import javax.faces.context.FacesContext; //导入方法依赖的package包/类
static private DialogRenderKitService _getDialogRenderKitService(
FacesContext context)
{
RenderKit rk = context.getRenderKit();
DialogRenderKitService service =
Service.getService(rk, DialogRenderKitService.class);
if (service == null)
{
_LOG.info("RENDERKIT_NOT_SUPPORT_DIALOGRENDERKITSERVICE", rk);
}
return service;
}
示例3: _getExtendedRenderKitService
import javax.faces.context.FacesContext; //导入方法依赖的package包/类
private ExtendedRenderKitService _getExtendedRenderKitService(
FacesContext context)
{
RenderKit rk = context.getRenderKit();
if (rk == null)
throw new NullPointerException("No renderkit");
return Service.getService(rk, ExtendedRenderKitService.class);
}
示例4: getRenderKitService
import javax.faces.context.FacesContext; //导入方法依赖的package包/类
/**
* A convenience for retrieving a service from the current RenderKit.
*/
static public <T> T getRenderKitService(FacesContext context,
Class<T> serviceClass)
{
// Provide a better exception than an NPE from inside of
// Service.getService().
RenderKit rk = context.getRenderKit();
if (rk == null)
throw new NullPointerException(_LOG.getMessage(
"OBTAIN_NULL_RENDERKIT_WHILE_GETTING_SERVICE", serviceClass.getName()));
return getService(rk, serviceClass);
}