org.jxls.common.RowData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls-jdk1.6 Show documentation
Show all versions of jxls-jdk1.6 Show documentation
Small library for Excel generation based on XLS templates
The newest version!
package org.jxls.common;
import org.jxls.transform.Transformer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Represents an excel row data holder
* @author Leonid Vysochyn
*/
public class RowData implements Iterable {
protected int height;
protected List cellDataList = new ArrayList();
Transformer transformer;
public Transformer getTransformer() {
return transformer;
}
public void setTransformer(Transformer transformer) {
this.transformer = transformer;
}
public int getNumberOfCells(){
return cellDataList.size();
}
public CellData getCellData(int col){
if( col < cellDataList.size() ) return cellDataList.get(col);
else return null;
}
public void addCellData(CellData cellData){
cellDataList.add(cellData);
}
public int getHeight() {
return height;
}
public Iterator iterator() {
return cellDataList.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy