Java 类net.sf.jasperreports.engine.export.GenericElementHandlerBundle 实例源码

项目:jasperreports    文件:DefaultExtensionsRegistryFactory.java   
@Override
public <T> List<T> getExtensions(Class<T> extensionType) 
{
    if (JRQueryExecuterFactoryBundle.class.equals(extensionType))
    {
        return (List<T>) Collections.singletonList((Object)DefaultQueryExecuterFactoryBundle.getInstance());
    }
    else if (ScriptletFactory.class.equals(extensionType))
    {
        return (List<T>) Collections.singletonList((Object)DefaultScriptletFactory.getInstance());
    }
    else if (ChartThemeBundle.class.equals(extensionType))
    {
        return (List<T>) Collections.singletonList((Object)DefaultChartTheme.BUNDLE);
    }
    else if (GenericElementHandlerBundle.class.equals(extensionType))
    {
        return (List<T>) Collections.singletonList((Object)HANDLER_BUNDLE);
    }
    else if (MessageProviderFactory.class.equals(extensionType))
    {
        return (List<T>) Collections.singletonList((Object) new ResourceBundleMessageProviderFactory());
    }
    return null;
}
项目:jasperreports    文件:TextInputElementExtensionsRegistryFactory.java   
@Override
@SuppressWarnings("unchecked")
public <T> List<T> getExtensions(Class<T> extensionType) 
{
    if (GenericElementHandlerBundle.class.equals(extensionType))
    {
        return Collections.singletonList((T)TextInputElementHandlerBundle.getInstance());
    }
    return null;
}
项目:jasperreports    文件:HtmlElementExtensionsRegistryFactory.java   
@Override
@SuppressWarnings("unchecked")
public <T> List<T> getExtensions(Class<T> extensionType) 
{
    if (GenericElementHandlerBundle.class.equals(extensionType))
    {
        return Collections.singletonList((T)HtmlElementHandlerBundle.getInstance());
    }
    return null;
}
项目:dynamicreports-jasper    文件:GoogleChartsExtensionsRegistryFactory.java   
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
public List getExtensions(Class extensionType) {
    if (ComponentsBundle.class.equals(extensionType)) {
        return Collections.singletonList(bundle);
    }
    if (GenericElementHandlerBundle.class.equals(extensionType)) {
        return Collections.singletonList(handler);
    }
    if (CustomComponentTransform.class.equals(extensionType)) {
        return transforms;
    }
    return null;
}
项目:jasperreports-wms-component    文件:ExtensionsRegistryFactory.java   
@Override
@SuppressWarnings("unchecked")
public <T> List<T> getExtensions(Class<T> extensionType) {
  if (GenericElementHandlerBundle.class.equals(extensionType)) {
    return (List<T>) Collections.singletonList((Object) HANDLER_BUNDLE);
  }
  return null;
}
项目:jasperreports-wms-component    文件:ComponentsExtensionsRegistryFactory.java   
@SuppressWarnings("unchecked")
@Override
public <T> List<T> getExtensions(Class<T> extensionType) {
  if (extensionType == ComponentsBundle.class) {
    return (List<T>) Collections.singletonList(COMPONENTS_BUNDLE);
  }
  if (extensionType == GenericElementHandlerBundle.class) {
    return (List<T>) Collections.singletonList(HANDLER_BUNDLE);
  }
  return null;
}