|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.binder.SimpleCellBinder
public class SimpleCellBinder
SimpleCellBinder is a lightweight and reduced-complexity CellBinder for use with token-based Spreadsheet mappings. SimpleCellBinder maps SimpleDataObject data to Spreadsheets. SimpleDataObjects can be wrapped around JSON output and provide a lightweight Object mapping to JSON data sources.
| Field Summary | |
|---|---|
static String |
START_TOKEN
|
| Constructor Summary | |
|---|---|
SimpleCellBinder(String templatename,
SimpleDataObject dataObject)
bind data to the template file |
|
SimpleCellBinder(WorkBook book,
SimpleDataObject dataObject)
Constructor takes a workbook and dataobject and automatically maps the data. |
|
| Method Summary | |
|---|---|
List |
bind()
execute the databinding, returns list of inserted rows |
void |
findTokens(WorkBook bk)
returns a list of all cells within the workbook containing the mapping tokens. |
HashMap |
getGlobalVariableList()
|
static void |
main(String[] args)
|
void |
setGlobalVariableList(HashMap globalVariableList)
|
static void |
testWrite(WorkBookHandle b,
String nm)
write out an xls file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String START_TOKEN
| Constructor Detail |
|---|
public SimpleCellBinder(String templatename,
SimpleDataObject dataObject)
templatename - dataObject -
public SimpleCellBinder(WorkBook book,
SimpleDataObject dataObject)
book - dataObject - | Method Detail |
|---|
public static void main(String[] args)
args - public List bind()
public static final void testWrite(WorkBookHandle b,
String nm)
b - nm - public void findTokens(WorkBook bk)
bk - public HashMap getGlobalVariableList()
public void setGlobalVariableList(HashMap globalVariableList)
globalVariableList - The globalVariableList to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||