gpt4 book ai didi

me.zhouzhuo.zzexcelcreator.ZzExcelCreator.getInstance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:17:15 30 4
gpt4 key购买 nike

本文整理了Java中me.zhouzhuo.zzexcelcreator.ZzExcelCreator.getInstance()方法的一些代码示例,展示了ZzExcelCreator.getInstance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZzExcelCreator.getInstance()方法的具体详情如下:
包路径:me.zhouzhuo.zzexcelcreator.ZzExcelCreator
类名称:ZzExcelCreator
方法名:getInstance

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;
  }
}

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com