本文整理匯總了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);
}