com.alphasystem.docx4j.builder.wml.CTTblLookBuilder 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 com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.sharedtypes.STOnOff;
import org.docx4j.wml.CTTblLook;
/**
* Fluent API builder for org.docx4j.wml.CTTblLook
.
*
*/
public class CTTblLookBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTTblLookBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTTblLookBuilder(CTTblLook 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 CTTblLookBuilder(CTTblLook src, CTTblLook target) {
this(target);
if (src!= null) {
withFirstRow(src.getFirstRow()).withLastRow(src.getLastRow()).withFirstColumn(src.getFirstColumn()).withLastColumn(src.getLastColumn()).withNoHBand(src.getNoHBand()).withNoVBand(src.getNoVBand()).withVal(src.getVal());
}
}
protected CTTblLook createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTTblLook();
}
public CTTblLookBuilder withFirstRow(STOnOff value) {
if (value!= null) {
object.setFirstRow(value);
}
return this;
}
public CTTblLookBuilder withLastRow(STOnOff value) {
if (value!= null) {
object.setLastRow(value);
}
return this;
}
public CTTblLookBuilder withFirstColumn(STOnOff value) {
if (value!= null) {
object.setFirstColumn(value);
}
return this;
}
public CTTblLookBuilder withLastColumn(STOnOff value) {
if (value!= null) {
object.setLastColumn(value);
}
return this;
}
public CTTblLookBuilder withNoHBand(STOnOff value) {
if (value!= null) {
object.setNoHBand(value);
}
return this;
}
public CTTblLookBuilder withNoVBand(STOnOff value) {
if (value!= null) {
object.setNoVBand(value);
}
return this;
}
public CTTblLookBuilder withVal(String value) {
if (value!= null) {
object.setVal(value);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy