com.alphasystem.docx4j.builder.wml.TabsBuilder Maven / Gradle / Ivy
package com.alphasystem.docx4j.builder.wml;
import java.util.List;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTTabStop;
import org.docx4j.wml.Tabs;
/**
* Fluent API builder for org.docx4j.wml.Tabs
.
*
*/
public class TabsBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public TabsBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public TabsBuilder(Tabs 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 TabsBuilder(Tabs src, Tabs target) {
this(target);
if (src!= null) {
List tab = src.getTab();
for (CTTabStop o: tab) {
addTab(new CTTabStopBuilder(o, null).getObject());
}
}
}
protected Tabs createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createTabs();
}
public TabsBuilder addTab(CTTabStop... value) {
addContent(object.getTab(), value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy