org.docx4j.model.table.TableModelRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-core Show documentation
Show all versions of docx4j-core 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.model.table;
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 TableModelRow {
public TableModelRow(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(TableModelCell newCell) {
rowContents.add(newCell);
}
public TableModelCell get(int i) {
return rowContents.get(i);
}
public int size() {
return rowContents.size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy