![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.jxls.sample.EmptyCellPreprocessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls-examples Show documentation
Show all versions of jxls-examples Show documentation
jXLS Examples demonstrate usage of jXLS library
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy