org.docx4j.model.table.TableModelRow Maven / Gradle / Ivy
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();
}
}