Package org.apache.poi.xssf.usermodel
Class XSSFCreationHelper
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFCreationHelper
-
- All Implemented Interfaces:
CreationHelper
public class XSSFCreationHelper extends java.lang.Object implements CreationHelper
-
-
Constructor Summary
Constructors Constructor Description XSSFCreationHelper(XSSFWorkbook wb)
Should only be called byXSSFWorkbook.getCreationHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AreaReference
createAreaReference(java.lang.String reference)
Creates an AreaReference.AreaReference
createAreaReference(CellReference topLeft, CellReference bottomRight)
Creates an area ref from a pair of Cell References..XSSFClientAnchor
createClientAnchor()
Creates a XSSFClientAnchor.XSSFDataFormat
createDataFormat()
Creates a new DataFormat instanceXSSFColor
createExtendedColor()
Creates a XSSF-style Color object, used for extended sheet formattings and conditional formattingsXSSFFormulaEvaluator
createFormulaEvaluator()
Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.XSSFHyperlink
createHyperlink(HyperlinkType type)
Create a new XSSFHyperlink.XSSFRichTextString
createRichTextString(java.lang.String text)
Creates a new XSSFRichTextString for you.
-
-
-
Constructor Detail
-
XSSFCreationHelper
@Internal public XSSFCreationHelper(XSSFWorkbook wb)
Should only be called byXSSFWorkbook.getCreationHelper()
- Parameters:
wb
- the workbook to create objects for
-
-
Method Detail
-
createRichTextString
public XSSFRichTextString createRichTextString(java.lang.String text)
Creates a new XSSFRichTextString for you.- Specified by:
createRichTextString
in interfaceCreationHelper
- Parameters:
text
- The text to initialise the RichTextString with
-
createDataFormat
public XSSFDataFormat createDataFormat()
Description copied from interface:CreationHelper
Creates a new DataFormat instance- Specified by:
createDataFormat
in interfaceCreationHelper
-
createExtendedColor
public XSSFColor createExtendedColor()
Description copied from interface:CreationHelper
Creates a XSSF-style Color object, used for extended sheet formattings and conditional formattings- Specified by:
createExtendedColor
in interfaceCreationHelper
-
createHyperlink
public XSSFHyperlink createHyperlink(HyperlinkType type)
Create a new XSSFHyperlink.- Specified by:
createHyperlink
in interfaceCreationHelper
- Parameters:
type
- - the type of hyperlink to create, seeHyperlink
-
createFormulaEvaluator
public XSSFFormulaEvaluator createFormulaEvaluator()
Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.- Specified by:
createFormulaEvaluator
in interfaceCreationHelper
- Returns:
- a XSSFFormulaEvaluator instance
-
createClientAnchor
public XSSFClientAnchor createClientAnchor()
Creates a XSSFClientAnchor. Use this object to position drawing object in a sheet- Specified by:
createClientAnchor
in interfaceCreationHelper
- Returns:
- a XSSFClientAnchor instance
- See Also:
Drawing
-
createAreaReference
public AreaReference createAreaReference(java.lang.String reference)
Creates an AreaReference.- Specified by:
createAreaReference
in interfaceCreationHelper
- Parameters:
reference
- cell reference- Returns:
- an AreaReference instance
-
createAreaReference
public AreaReference createAreaReference(CellReference topLeft, CellReference bottomRight)
Creates an area ref from a pair of Cell References..- Specified by:
createAreaReference
in interfaceCreationHelper
- Parameters:
topLeft
- cell referencebottomRight
- cell reference- Returns:
- an AreaReference instance
-
-