Skip navigation links
com.auxiliary.tool.file.excel

Class ExcelCommonJsonField

    • Constructor Detail

      • ExcelCommonJsonField

        public ExcelCommonJsonField()
    • Method Detail

      • getBorderJson

        public static com.alibaba.fastjson.JSONObject getBorderJson(org.apache.poi.ss.usermodel.BorderStyle borderStyle,
                                                                    OrientationType... orientationTypes)
        该方法用于根据单元格边框样式和边框的位置,组合并返回边框样式json

        该json的完整样式为:

         {
          "type":1, 
          "orientation":[0, 1, 2, 3]
         }
         

        Parameters:
        borderStyle - 单元格样式
        orientationTypes - 添加边框的位置
        Returns:
        json类对象
        Since:
        autest 3.7.0

Copyright © 2024. All rights reserved.