public class WorkbookContext
extends java.lang.Object
WorkbookContext
object holds data relevant to the context of
a Workbook
.Constructor | Description |
---|---|
WorkbookContext() |
Initializes things to null/0.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getBeansMaps() |
Returns a
List of beans maps. |
java.util.List<CellListener> |
getCellListeners() |
Returns the
CellListeners . |
java.util.Map<java.lang.String,java.util.List<CellRef>> |
getCellRefMap() |
Returns the cell reference map, a
Map of cell key strings to
Lists of CellRefs . |
CellStyleCache |
getCellStyleCache() |
Returns the
CellStyleCache . |
ExpressionFactory |
getExpressionFactory() |
Returns the
ExpressionFactory . |
java.util.List<java.lang.String> |
getFixedSizedCollectionNames() |
Returns the
List of "fixed size" collection names. |
FontCache |
getFontCache() |
Returns the
FontCache . |
java.util.Map<java.lang.String,Formula> |
getFormulaMap() |
Returns the formula map, a
Map of formula keys to
Formulas , with the keys of the format "sheetName!formula". |
java.util.List<java.lang.String> |
getNoImplicitProcessingCollectionNames() |
Returns the
List of collection names on which NOT to perform
implicit collections processing. |
TagLibraryRegistry |
getRegistry() |
Returns the
TagLibraryRegistry . |
int |
getSequenceNbr() |
Returns the current sequence number.
|
java.util.List<SheetListener> |
getSheetListeners() |
Returns the
SheetListeners . |
java.util.List<java.lang.String> |
getSheetNames() |
Returns a
List of sheet names. |
java.util.Map<java.lang.String,Style> |
getStyleMap() |
Returns the
Map of style names to Styles . |
java.util.Map<java.lang.String,java.lang.String> |
getTagLocationsMap() |
Returns the tag locations map, a
Map of current tag location
cell references to original tag location cell references, with the cell
references being in the format "Sheet!B1". |
java.util.List<java.lang.String> |
getTemplateSheetNames() |
Returns a
List of template sheet names. |
void |
incrSequenceNbr() |
Increments the current sequence number.
|
void |
setBeansMaps(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> beansMaps) |
Stores a copy of the given
List of beans maps. |
void |
setCellListeners(java.util.List<CellListener> cellListeners) |
Sets the
CellListeners . |
void |
setCellRefMap(java.util.Map<java.lang.String,java.util.List<CellRef>> cellRefMap) |
Sets the cell reference map, a
Map of cell key strings to
Lists of CellRefs . |
void |
setCellStyleCache(CellStyleCache cache) |
Sets the
CellStyleCache . |
void |
setExpressionFactory(ExpressionFactory factory) |
Sets the
ExpressionFactory . |
void |
setFixedSizeCollectionNames(java.util.List<java.lang.String> collNames) |
These named
Collections have a known size and do not need to
have other Cells shifted out of the way for its contents;
space is already allocated. |
void |
setFontCache(FontCache cache) |
Sets the
FontCache . |
void |
setFormulaMap(java.util.Map<java.lang.String,Formula> formulaMap) |
Sets the formula map, a
Map of formula keys to
Formulas , with the keys of the format "sheetName!formula". |
void |
setNoImplicitCollectionProcessingNames(java.util.List<java.lang.String> collNames) |
Turn off implicit collections processing for the given
Collections specified by the given collection names. |
void |
setRegistry(TagLibraryRegistry registry) |
Sets the
TagLibraryRegistry . |
void |
setSheetListeners(java.util.List<SheetListener> sheetListeners) |
Sets the
SheetListeners . |
void |
setSheetNames(java.util.List<java.lang.String> sheetNames) |
Stores a copy of the given
List of sheet names. |
void |
setStyleMap(java.util.Map<java.lang.String,Style> styleMap) |
Sets
Map of style names to Styles . |
void |
setTagLocationsMap(java.util.Map<java.lang.String,java.lang.String> tagLocationsMap) |
Sets the tag locations map, a
Map of current tag location
cell references to original tag location cell references, with the cell
references being in the format "Sheet!B1". |
void |
setTemplateSheetNames(java.util.List<java.lang.String> templateSheetNames) |
Stores a copy of the given
List of template sheet names. |
public TagLibraryRegistry getRegistry()
TagLibraryRegistry
.TagLibraryRegistry
.public void setRegistry(TagLibraryRegistry registry)
TagLibraryRegistry
.registry
- The TagLibraryRegistry
.public java.util.List<CellListener> getCellListeners()
CellListeners
.CellListeners
.public java.util.List<SheetListener> getSheetListeners()
SheetListeners
.SheetListeners
.public void setSheetListeners(java.util.List<SheetListener> sheetListeners)
SheetListeners
.sheetListeners
- The SheetListeners
.public void setCellListeners(java.util.List<CellListener> cellListeners)
CellListeners
.cellListeners
- The CellListeners
.public void setFixedSizeCollectionNames(java.util.List<java.lang.String> collNames)
Collections
have a known size and do not need to
have other Cells
shifted out of the way for its contents;
space is already allocated.collNames
- A List
of Collection
names
that don't need other Cells
shifted out of the way for
its contents.public java.util.List<java.lang.String> getFixedSizedCollectionNames()
List
of "fixed size" collection names.List
of "fixed size" collection names.public void setNoImplicitCollectionProcessingNames(java.util.List<java.lang.String> collNames)
Collections
specified by the given collection names.collNames
- The names of the Collections
on which NOT
to perform implicit collections processing.public java.util.List<java.lang.String> getNoImplicitProcessingCollectionNames()
List
of collection names on which NOT to perform
implicit collections processing.List
of collection names on which NOT to perform
implicit collections processing.public java.util.Map<java.lang.String,Formula> getFormulaMap()
Map
of formula keys to
Formulas
, with the keys of the format "sheetName!formula".Map
of formula keys to Formulas
.public void setFormulaMap(java.util.Map<java.lang.String,Formula> formulaMap)
Map
of formula keys to
Formulas
, with the keys of the format "sheetName!formula".formulaMap
- A Map
of formula keys to
Formulas
.public java.util.Map<java.lang.String,java.lang.String> getTagLocationsMap()
Map
of current tag location
cell references to original tag location cell references, with the cell
references being in the format "Sheet!B1". This is currently used only to
identify original tag locations for exception messages.Map
of current tag location cell references to
original tag location cell references.public void setTagLocationsMap(java.util.Map<java.lang.String,java.lang.String> tagLocationsMap)
Map
of current tag location
cell references to original tag location cell references, with the cell
references being in the format "Sheet!B1". This is currently used only to
identify original tag locations for exception messages.tagLocationsMap
- A Map
of current tag location cell
references to original tag location cell references.public java.util.Map<java.lang.String,java.util.List<CellRef>> getCellRefMap()
Map
of cell key strings to
Lists
of CellRefs
. The cell key strings are
original cell references, and the Lists
contain translated
CellRefs
, e.g. "Sheet1!C2" => [C2, C3, C4]Map
of cell key strings to Lists
of
CellRefs
.public void setCellRefMap(java.util.Map<java.lang.String,java.util.List<CellRef>> cellRefMap)
Map
of cell key strings to
Lists
of CellRefs
. The cell key strings are
original cell references, and the Lists
contain translated
CellRefs
, e.g. "Sheet1!C2" => [C2, C3, C4]cellRefMap
- A Map
of cell key strings to
Lists
of CellRefs
.public int getSequenceNbr()
public void incrSequenceNbr()
public CellStyleCache getCellStyleCache()
CellStyleCache
.CellStyleCache
.public void setCellStyleCache(CellStyleCache cache)
CellStyleCache
.cache
- A CellStyleCache
.public FontCache getFontCache()
FontCache
.FontCache
.public void setFontCache(FontCache cache)
FontCache
.cache
- The FontCache
.public java.util.Map<java.lang.String,Style> getStyleMap()
Map
of style names to Styles
.Map
of style names to Styles
.public void setStyleMap(java.util.Map<java.lang.String,Style> styleMap)
Map
of style names to Styles
.styleMap
- The Map
of style names to
Styles
.public java.util.List<java.lang.String> getTemplateSheetNames()
List
of template sheet names.List
of template sheet names.public void setTemplateSheetNames(java.util.List<java.lang.String> templateSheetNames)
List
of template sheet names.templateSheetNames
- A List
of template sheet names.public java.util.List<java.lang.String> getSheetNames()
List
of sheet names.List
of sheet names.public void setSheetNames(java.util.List<java.lang.String> sheetNames)
List
of sheet names.sheetNames
- A List
of sheet names.public ExpressionFactory getExpressionFactory()
ExpressionFactory
.ExpressionFactory
.public void setExpressionFactory(ExpressionFactory factory)
ExpressionFactory
.factory
- The ExpressionFactory
.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getBeansMaps()
List
of beans maps.List
of beans maps.public void setBeansMaps(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> beansMaps)
List
of beans maps.beansMaps
- A List
of beans maps.Copyright © 2012–2018 Jett Team. All rights reserved.