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

word.w2004.elements.PageBreak Maven / Gradle / Ivy

The newest version!
package word.w2004.elements;

import word.api.interfaces.IElement;

/*
 *  It inserts a Page break at the point you add this class to the document.
 * 
 */
public class PageBreak implements IElement{

	public String getContent() {
		return "\n";
	}

	/**
	 * This is a different fluent way. 
	 * Because there is no create "with", we will have to create a static method to return an instance of the pageBreak. 
	 * * Notice that this class doesn't implement IFluentInterface.
	 * 
	 * */
	public static PageBreak create() {
		return new PageBreak();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy