spring装配bean之通过java代码装配bean https://my.oschina.net/u/37…
不静之心
总是乐于收藏和分享,有助于个人成长
月份:2017年12月
d3和css实现一条线的动画
D3方式: 原文: https://segmentfault.com/a/1190000000453579 通…
js增加,删除,修改树结构的节点数据
增加
1 2 3 4 5 6 7 8 9 10 11 12 |
function addTreeNode(root, id, obj) { if (root.id == id) { if (root.children == null) root.children = []; root.children.push(obj); return true; } else if (root.children && root.children.length > 0) { for (var i = root.children.length - 1; i >= 0; i--) { addTreeNode(root.children[i], id, obj); } } } |
修改 [crayon-66237877…
使用CSS + svg 实现中间镂空的图片遮罩效果,css遮罩
http://www.bkjia.com/CSSjc/1085925.html 镂空一个洞的代码 [crayo…
D3js-画二维坐标轴(x轴,y轴)
原文: http://blog.csdn.net/u013147600/article/details/464…
birt 配置动态数据源
birt 配置动态数据源 http://blog.csdn.net/lianggeblog/article/d…
D3.js数据可视化系列教程
官方: https://d3js.org/ 官方例子: https://github.com/d3/d3/w…
echarts写仪表盘,指针到不同区域显示不同颜色
echarts写仪表盘,指针到不同区域显示不同颜色 https://my.oschina.net/u/3549…
Birt使用Spring context
初始化:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
package com.pandy.birt; import com.pandy.birt.dto.AppException; import com.pandy.birt.dto.Report; import org.eclipse.birt.core.framework.IPlatformContext; import org.eclipse.birt.core.framework.Platform; import org.eclipse.birt.core.framework.PlatformServletContext; import org.eclipse.birt.report.engine.api.*; import org.springframework.beans.BeansException; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.FactoryBean; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.web.context.ServletContextAware; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.File; import java.util.*; public class BirtEngineFactory implements FactoryBean<IReportEngine>, ApplicationContextAware, ServletContextAware, DisposableBean { private ApplicationContext applicationContext; private static ServletContext servletContext; private IReportEngine birtEngine; private Map<String, IReportRunnable> reports = new HashMap<>(); @Override protected void finalize() throws Throwable { super.finalize(); EngineConfig config = new EngineConfig(); //注入Spring和Servlet环境 config.getAppContext().put("applicationContext", this.applicationContext); config.getAppContext().put("servletContext", this.servletContext); startupOSGI(config); IReportEngineFactory factory = (IReportEngineFactory) Platform .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); this.birtEngine = factory.createReportEngine(config); loadReports();//载入报表 } } |
在rptdesign…
BI 开源工具介绍
国产: 开源BI软件 Poli https://github.com/shzlw/poli …
解决datepicker设置选中日期setDate不生效问题
解决datepicker设置选中日期setDate不生效问题 https://my.oschina.net/H…
ht for web:基于HTML5的图形设计
官方 http://www.hightopo.com/ 官方中文: http://www.hightopo.c…
JavaScript-内存泄漏问题
JavaScript 内存泄漏教程 http://www.ruanyifeng.com/blog/2017/0…