All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.docx4j.model.table.TableModelRow Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 11.4.11
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy