|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jett.transform.SheetTransformer
public class SheetTransformer
A SheetTransformer knows how to transform one
Sheet in an Excel spreadsheet. For cell processing, it creates
a Block representing the entire Sheet, then it
delegates processing to a BlockTransformer. It is also
responsible for gathering all Formulas at the beginning, and
replacing all Formulas with Excel Formulas at the end. It also
exposes the "sheet" object in the "beans" Map.
| Constructor Summary | |
|---|---|
SheetTransformer()
|
|
| Method Summary | |
|---|---|
void |
gatherFormulas(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.String,Formula> formulaMap)
Searches for all Formulas contained on the given
Sheet. |
void |
replaceFormulas(org.apache.poi.ss.usermodel.Sheet sheet,
WorkbookContext context)
Replace all Formulas found in the given Sheet
with Excel formulas. |
void |
transform(org.apache.poi.ss.usermodel.Sheet sheet,
WorkbookContext context,
java.util.Map<java.lang.String,java.lang.Object> beans)
Transforms the given Sheet, using the given Map
of bean names to bean objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SheetTransformer()
| Method Detail |
|---|
public void transform(org.apache.poi.ss.usermodel.Sheet sheet,
WorkbookContext context,
java.util.Map<java.lang.String,java.lang.Object> beans)
Sheet, using the given Map
of bean names to bean objects.
sheet - The Sheet to transform.context - The WorkbookContext.beans - The beans map.
public void gatherFormulas(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.String,Formula> formulaMap)
Formulas contained on the given
Sheet. Adds them to the given formula map.
sheet - The Sheet on which to search for
Formulas.formulaMap - A Map of strings to Formulas,
with the keys of the format "sheetName!formulaText".
public void replaceFormulas(org.apache.poi.ss.usermodel.Sheet sheet,
WorkbookContext context)
Formulas found in the given Sheet
with Excel formulas.
sheet - The Sheet.context - The WorkbookContext.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||