com.alphasystem.docx4j.builder.wml.TblBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-xml-builder Show documentation
Show all versions of open-xml-builder Show documentation
Alpha system commons library
package com.alphasystem.docx4j.builder.wml;
import java.util.List;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.Tbl;
import org.docx4j.wml.TblGrid;
import org.docx4j.wml.TblPr;
/**
* Fluent API builder for org.docx4j.wml.Tbl
.
*
*/
public class TblBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public TblBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public TblBuilder(Tbl object) {
super(object);
}
/**
* Copies values fom src
into target
. Values of target
will be overridden by the values from src
.
*
* @param src
* source object
* @param target
* target object
*/
public TblBuilder(Tbl src, Tbl target) {
this(target);
if (src!= null) {
TblPr tblPr = src.getTblPr();
if (tblPr!= null) {
tblPr = new TblPrBuilder(tblPr, object.getTblPr()).getObject();
}
TblGrid tblGrid = src.getTblGrid();
if (tblGrid!= null) {
tblGrid = new TblGridBuilder(tblGrid, object.getTblGrid()).getObject();
}
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy