⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emptycellpreprocessor.java

📁 一个java生成自动生成Excel
💻 JAVA
字号:
package net.sf.jxls.sample;import java.util.HashSet;import java.util.Set;import net.sf.jxls.processor.PropertyPreprocessor;/** * @author Leonid Vysochin */public class EmptyCellPreprocessor implements PropertyPreprocessor {    private Set hiddenProperties = new HashSet();    public boolean addHiddenProperty(String propertyTemplateName) {        return hiddenProperties.add(propertyTemplateName);    }    /**     * If the property is private we return empty string to indicate it should not be visible     * @param propertyTemplateName - The name of the property as it is in template file     * @return replacement value for given property     */    public String processProperty(String propertyTemplateName) {        if (hiddenProperties.contains(propertyTemplateName)) {            return "";        }        return null;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -