org.docx4j.convert.out.common.writer.AbstractTableWriterModelRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.docx4j.convert.out.common.writer;
import java.util.List;
import java.util.Vector;
import org.docx4j.wml.CTTblPrEx;
import org.docx4j.wml.Tr;
import org.docx4j.wml.TrPr;
/**
* This class introduced so we have somewhere to
* store trPr.
*
* @author jharrop
*
*/
public class AbstractTableWriterModelRow {
public AbstractTableWriterModelRow(Tr tr) {
trPr = tr.getTrPr();
tblPrEx = tr.getTblPrEx();
}
private List rowContents = new Vector();
private TrPr trPr;
private CTTblPrEx tblPrEx;
public TrPr getRowProperties() {
return trPr;
}
public CTTblPrEx getRowPropertiesExceptions() {
return tblPrEx;
}
public List getRowContents() {
return rowContents;
}
public void add(AbstractTableWriterModelCell newCell) {
rowContents.add(newCell);
}
public AbstractTableWriterModelCell get(int i) {
return rowContents.get(i);
}
public int size() {
return rowContents.size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy