public class TagContext
extends java.lang.Object
TagContext object represents the context associated with a
Tag.| Constructor | Description |
|---|---|
TagContext() |
Construct a
TagContext, initializing things to null. |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.poi.ss.usermodel.Drawing |
createDrawing() |
Returns the
Sheet's Drawing object, creating it
if it doesn't exist. |
java.util.Map<java.lang.String,java.lang.Object> |
getBeans() |
Returns the
Map of beans. |
Block |
getBlock() |
Returns the
Block that applies to a tag. |
java.util.List<java.util.List<org.apache.poi.ss.util.CellRangeAddress>> |
getConditionalFormattingRegions() |
Returns the
List of Lists of
CellRangeAddress objects to be manipulated through this
TagContext. |
Tag |
getCurrentTag() |
Returns the current
Tag for this context. |
org.apache.poi.ss.usermodel.Drawing |
getDrawing() |
Returns the
Sheet's Drawing object, if it
exists yet. |
java.lang.String |
getFormulaSuffix() |
Returns the formula suffix.
|
java.util.List<org.apache.poi.ss.util.CellRangeAddress> |
getMergedRegions() |
Returns the
List of CellRangeAddress objects on
the current Sheet. |
org.apache.poi.ss.usermodel.Drawing |
getOrCreateDrawing() |
Returns the
Sheet's Drawing. |
java.util.Map<java.lang.String,org.apache.poi.ss.usermodel.Cell> |
getProcessedCellsMap() |
Returns the
Map of Cells that have already been
processed. |
org.apache.poi.ss.usermodel.Sheet |
getSheet() |
Returns the
Sheet on which a tag is found. |
void |
setBeans(java.util.Map<java.lang.String,java.lang.Object> beans) |
Sets the
Map of beans. |
void |
setBlock(Block block) |
Sets the
Block that applies to a tag. |
void |
setConditionalFormattingRegions(java.util.List<java.util.List<org.apache.poi.ss.util.CellRangeAddress>> conditionalFormattingRegions) |
Sets the
List of Lists of
CellRangeAddress objects to be manipulated through this
TagContext. |
void |
setCurrentTag(Tag tag) |
Sets the current
Tag for this context. |
void |
setDrawing(org.apache.poi.ss.usermodel.Drawing drawing) |
Sets the
Sheet's Drawing object. |
void |
setFormulaSuffix(java.lang.String formulaSuffix) |
Sets the formula suffix.
|
void |
setMergedRegions(java.util.List<org.apache.poi.ss.util.CellRangeAddress> mergedRegions) |
Sets the
List of CellRangeAddress objects to be
manipulated through this TagContext. |
void |
setProcessedCellsMap(java.util.Map<java.lang.String,org.apache.poi.ss.usermodel.Cell> processedCells) |
Sets the
Map of Cells that have already been
processed. |
void |
setSheet(org.apache.poi.ss.usermodel.Sheet sheet) |
Sets the
Sheet on which a tag is found. |
public TagContext()
TagContext, initializing things to null.public org.apache.poi.ss.usermodel.Sheet getSheet()
Sheet on which a tag is found.Sheet.public void setSheet(org.apache.poi.ss.usermodel.Sheet sheet)
Sheet on which a tag is found.sheet - A Sheet.public Block getBlock()
Block that applies to a tag.Block.public void setBlock(Block block)
Block that applies to a tag.block - A Block.public java.util.Map<java.lang.String,java.lang.Object> getBeans()
Map of beans.Map of bean names and objects.public void setBeans(java.util.Map<java.lang.String,java.lang.Object> beans)
Map of beans.beans - A Map of bean names and objects.public java.util.Map<java.lang.String,org.apache.poi.ss.usermodel.Cell> getProcessedCellsMap()
Map of Cells that have already been
processed.Map of Cells.public void setProcessedCellsMap(java.util.Map<java.lang.String,org.apache.poi.ss.usermodel.Cell> processedCells)
Map of Cells that have already been
processed.processedCells - A Map of Cells.public org.apache.poi.ss.usermodel.Drawing createDrawing()
Sheet's Drawing object, creating it
if it doesn't exist. To avoid clobbering existing drawings, replace a
call to this method with a call to getDrawingPatriarch in
the POI "ss" package, because that call will NOT corrupt drawings, charts, etc.Drawing.public org.apache.poi.ss.usermodel.Drawing getOrCreateDrawing()
Sheet's Drawing. Creates the
Drawing if it doesn't exist yet.Drawing.public org.apache.poi.ss.usermodel.Drawing getDrawing()
Sheet's Drawing object, if it
exists yet.Drawing, or null if it doesn't exist
yet.public void setDrawing(org.apache.poi.ss.usermodel.Drawing drawing)
Sheet's Drawing object. This is
usually used to initialize a TagContext from another
TagContext, copying the Drawing object.drawing - A Drawing.public void setMergedRegions(java.util.List<org.apache.poi.ss.util.CellRangeAddress> mergedRegions)
List of CellRangeAddress objects to be
manipulated through this TagContext. All merged region
manipulation for a Sheet goes through this list, instead of
the Sheet itself, for performance reasons.mergedRegions - A List of
CellRangeAddresses.public java.util.List<org.apache.poi.ss.util.CellRangeAddress> getMergedRegions()
List of CellRangeAddress objects on
the current Sheet. For performance reasons, the
SheetTransformer reads all merged regions into this list
before transformation, all manipulations are done to this list, and after
transformation, the list is re-applied to the Sheet.List of CellRangeAddresses.public void setConditionalFormattingRegions(java.util.List<java.util.List<org.apache.poi.ss.util.CellRangeAddress>> conditionalFormattingRegions)
List of Lists of
CellRangeAddress objects to be manipulated through this
TagContext. All conditional formatting range manipulation
for a Sheet goes through this list. Each individual list
inside the outer list represents the updated cell range addresses for the
ConditionalFormatting at the corresponding index.conditionalFormattingRegions - A List of Lists of
CellRangeAddresses.public java.util.List<java.util.List<org.apache.poi.ss.util.CellRangeAddress>> getConditionalFormattingRegions()
List of Lists of
CellRangeAddress objects to be manipulated through this
TagContext. All conditional formatting range manipulation
for a Sheet goes through this list. Each individual list
inside the outer list represents the updated cell range addresses for the
ConditionalFormatting at the corresponding index.List of Lists of
CellRangeAddresses.public Tag getCurrentTag()
Tag for this context.Tag for this context.public void setCurrentTag(Tag tag)
Tag for this context.tag - The current Tag for this context.public java.lang.String getFormulaSuffix()
public void setFormulaSuffix(java.lang.String formulaSuffix)
formulaSuffix - The formula suffix, e.g. "[1,0][2,1]". This would
be read as loop 1, iteration 0, subloop 2, iteration 1.Copyright © 2012–2018 Jett Team. All rights reserved.