mirror of https://github.com/apache/poi.git
Fix inconsistent whitespace/indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b068856c51
commit
ee3925aff1
|
@ -21,48 +21,48 @@ import org.apache.poi.hssf.record.common.ExtendedColor;
|
||||||
import org.apache.poi.ss.usermodel.CreationHelper;
|
import org.apache.poi.ss.usermodel.CreationHelper;
|
||||||
|
|
||||||
public class HSSFCreationHelper implements CreationHelper {
|
public class HSSFCreationHelper implements CreationHelper {
|
||||||
private HSSFWorkbook workbook;
|
private HSSFWorkbook workbook;
|
||||||
private HSSFDataFormat dataFormat;
|
private HSSFDataFormat dataFormat;
|
||||||
|
|
||||||
HSSFCreationHelper(HSSFWorkbook wb) {
|
HSSFCreationHelper(HSSFWorkbook wb) {
|
||||||
workbook = wb;
|
workbook = wb;
|
||||||
|
|
||||||
// Create the things we only ever need one of
|
// Create the things we only ever need one of
|
||||||
dataFormat = new HSSFDataFormat(workbook.getWorkbook());
|
dataFormat = new HSSFDataFormat(workbook.getWorkbook());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HSSFRichTextString createRichTextString(String text) {
|
public HSSFRichTextString createRichTextString(String text) {
|
||||||
return new HSSFRichTextString(text);
|
return new HSSFRichTextString(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HSSFDataFormat createDataFormat() {
|
public HSSFDataFormat createDataFormat() {
|
||||||
return dataFormat;
|
return dataFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HSSFHyperlink createHyperlink(int type) {
|
public HSSFHyperlink createHyperlink(int type) {
|
||||||
return new HSSFHyperlink(type);
|
return new HSSFHyperlink(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HSSFExtendedColor createExtendedColor() {
|
public HSSFExtendedColor createExtendedColor() {
|
||||||
return new HSSFExtendedColor(new ExtendedColor());
|
return new HSSFExtendedColor(new ExtendedColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a HSSFFormulaEvaluator, the object that evaluates formula cells.
|
* Creates a HSSFFormulaEvaluator, the object that evaluates formula cells.
|
||||||
*
|
*
|
||||||
* @return a HSSFFormulaEvaluator instance
|
* @return a HSSFFormulaEvaluator instance
|
||||||
*/
|
*/
|
||||||
public HSSFFormulaEvaluator createFormulaEvaluator(){
|
public HSSFFormulaEvaluator createFormulaEvaluator(){
|
||||||
return new HSSFFormulaEvaluator(workbook);
|
return new HSSFFormulaEvaluator(workbook);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a HSSFClientAnchor. Use this object to position drawing object in a sheet
|
* Creates a HSSFClientAnchor. Use this object to position drawing object in a sheet
|
||||||
*
|
*
|
||||||
* @return a HSSFClientAnchor instance
|
* @return a HSSFClientAnchor instance
|
||||||
* @see org.apache.poi.ss.usermodel.Drawing
|
* @see org.apache.poi.ss.usermodel.Drawing
|
||||||
*/
|
*/
|
||||||
public HSSFClientAnchor createClientAnchor(){
|
public HSSFClientAnchor createClientAnchor(){
|
||||||
return new HSSFClientAnchor();
|
return new HSSFClientAnchor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,24 +20,24 @@ import org.apache.poi.ss.usermodel.CreationHelper;
|
||||||
import org.apache.poi.ss.usermodel.Hyperlink;
|
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||||
|
|
||||||
public class XSSFCreationHelper implements CreationHelper {
|
public class XSSFCreationHelper implements CreationHelper {
|
||||||
private XSSFWorkbook workbook;
|
private XSSFWorkbook workbook;
|
||||||
|
|
||||||
XSSFCreationHelper(XSSFWorkbook wb) {
|
XSSFCreationHelper(XSSFWorkbook wb) {
|
||||||
workbook = wb;
|
workbook = wb;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new XSSFRichTextString for you.
|
* Creates a new XSSFRichTextString for you.
|
||||||
*/
|
*/
|
||||||
public XSSFRichTextString createRichTextString(String text) {
|
public XSSFRichTextString createRichTextString(String text) {
|
||||||
XSSFRichTextString rt = new XSSFRichTextString(text);
|
XSSFRichTextString rt = new XSSFRichTextString(text);
|
||||||
rt.setStylesTableReference(workbook.getStylesSource());
|
rt.setStylesTableReference(workbook.getStylesSource());
|
||||||
return rt;
|
return rt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XSSFDataFormat createDataFormat() {
|
public XSSFDataFormat createDataFormat() {
|
||||||
return workbook.createDataFormat();
|
return workbook.createDataFormat();
|
||||||
}
|
}
|
||||||
|
|
||||||
public XSSFColor createExtendedColor() {
|
public XSSFColor createExtendedColor() {
|
||||||
return new XSSFColor();
|
return new XSSFColor();
|
||||||
|
@ -48,27 +48,27 @@ public class XSSFCreationHelper implements CreationHelper {
|
||||||
*
|
*
|
||||||
* @param type - the type of hyperlink to create, see {@link Hyperlink}
|
* @param type - the type of hyperlink to create, see {@link Hyperlink}
|
||||||
*/
|
*/
|
||||||
public XSSFHyperlink createHyperlink(int type) {
|
public XSSFHyperlink createHyperlink(int type) {
|
||||||
return new XSSFHyperlink(type);
|
return new XSSFHyperlink(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.
|
* Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.
|
||||||
*
|
*
|
||||||
* @return a XSSFFormulaEvaluator instance
|
* @return a XSSFFormulaEvaluator instance
|
||||||
*/
|
*/
|
||||||
public XSSFFormulaEvaluator createFormulaEvaluator() {
|
public XSSFFormulaEvaluator createFormulaEvaluator() {
|
||||||
return new XSSFFormulaEvaluator(workbook);
|
return new XSSFFormulaEvaluator(workbook);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a XSSFClientAnchor. Use this object to position drawing object in
|
* Creates a XSSFClientAnchor. Use this object to position drawing object in
|
||||||
* a sheet
|
* a sheet
|
||||||
*
|
*
|
||||||
* @return a XSSFClientAnchor instance
|
* @return a XSSFClientAnchor instance
|
||||||
* @see org.apache.poi.ss.usermodel.Drawing
|
* @see org.apache.poi.ss.usermodel.Drawing
|
||||||
*/
|
*/
|
||||||
public XSSFClientAnchor createClientAnchor() {
|
public XSSFClientAnchor createClientAnchor() {
|
||||||
return new XSSFClientAnchor();
|
return new XSSFClientAnchor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue