- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中me.zhouzhuo.zzexcelcreator.ZzExcelCreator.getInstance()
方法的一些代码示例,展示了ZzExcelCreator.getInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZzExcelCreator.getInstance()
方法的具体详情如下:
包路径:me.zhouzhuo.zzexcelcreator.ZzExcelCreator
类名称:ZzExcelCreator
方法名:getInstance
暂无
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.DARK_YELLOW值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.DARK_YELLOW
*/
public static Colour getCustomColor5(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.DARK_YELLOW, Color.red(color), Color.green(color), Color.blue(color));
return Colour.DARK_YELLOW;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.VERY_LIGHT_YELLOW值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.VERY_LIGHT_YELLOW
*/
public static Colour getCustomColor6(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.VERY_LIGHT_YELLOW, Color.red(color), Color.green(color), Color.blue(color));
return Colour.VERY_LIGHT_YELLOW;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.ROSE值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.ROSE
*/
public static Colour getCustomColor1(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.ROSE, Color.red(color), Color.green(color), Color.blue(color));
return Colour.ROSE;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.CORAL值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.CORAL
*/
public static Colour getCustomColor2(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.CORAL, Color.red(color), Color.green(color), Color.blue(color));
return Colour.CORAL;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.YELLOW值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.YELLOW
*/
public static Colour getCustomColor3(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.YELLOW, Color.red(color), Color.green(color), Color.blue(color));
return Colour.YELLOW;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
/**
* 修改常量Colour.YELLOW2值为指定颜色
*
* @param colorStr 自定义颜色
* @return Colour.YELLOW2
*/
public static Colour getCustomColor4(String colorStr) {
int color = Color.parseColor(colorStr); // 自定义的颜色
WritableWorkbook workbook = ZzExcelCreator.getInstance().getWritableWorkbook();
if (workbook == null) {
throw new NullPointerException("Please invoke ZzExcelCreator.getInstance().createExcel() method first.");
}
workbook.setColourRGB(Colour.YELLOW2, Color.red(color), Color.green(color), Color.blue(color));
return Colour.YELLOW2;
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
@Override
protected Integer doInBackground(String... params) {
try {
ZzExcelCreator
.getInstance()
.createExcel(PATH, params[0])
.createSheet(params[1])
.close();
return 1;
} catch (IOException | WriteException e) {
e.printStackTrace();
return 0;
}
}
代码示例来源:origin: zhouzhuo810/ZzExcelCreator
@Override
protected Integer doInBackground(String... params) {
try {
ZzExcelCreator
.getInstance()
.openExcel(new File(PATH + params[0] + ".xls")) //如果不想覆盖文件,注意是openExcel
.createSheet(params[1])
.close();
return 1;
} catch (IOException | WriteException e) {
e.printStackTrace();
return 0;
} catch (BiffException e) {
e.printStackTrace();
return 0;
}
}
本文整理了Java中me.zhouzhuo.zzexcelcreator.ZzExcelCreator.getInstance()方法的一些代码示例,展示了ZzExcelCreator.getInst
本文整理了Java中me.zhouzhuo.zzexcelcreator.ZzExcelCreator类的一些代码示例,展示了ZzExcelCreator类的具体用法。这些代码示例主要来源于Githu
我是一名优秀的程序员,十分优秀!